I am trying to install pycaret by creating an environment in anaconda (python 3.8). Everything is fine except when i tried to from pycaret.classification import *
i shows an error despite the fact that i have installed all dependencies:
ImportError: Missing optional dependency 'Jinja2'. DataFrame.style requires jinja2. Use pip or conda to install Jinja2.
I tried refreshing the kernel and reinstalling Jinja2 but the error remains. May i know how could i overcome it?
I had same issue in colab, I fixed it by forcing the markupsafe
version:
pip install markupsafe==2.0.1
After this, the next imports worked as before
import jinja2
pycaret.classification import *