1

I am getting this error in my VSCODE:

No module named 'pycaret

my query is this:

from pycaret.classification import *

I have installed pycaret, may I know how can I solve this error?

Amy Diana
  • 129
  • 1
  • 5

3 Answers3

1

Make sure you install pycaret in a clean python environment. Then enable the python environment before trying to run the script.

Nikhil Gupta
  • 1,436
  • 12
  • 15
0

Can you try below code chunk on your Visual studio Code IDE's terminal ?

pip install pycaret --user

I had similiar experience like yours while i have anaconda environment, i also have python's path. So using this will not clear way to do but if you stuck just use it and continue your journey !

If you using anaconda environment use this on anaconda prompt

conda install -c conda-forge pycaret
elandil2
  • 25
  • 1
  • 3
0

I had similar issue, and solved it this way:

I installed pycaret :

!pip install pycaret

I installed Jinja2:

!pip install Jinja2

Lastly installed markupsafe (dependency resolver) :

!pip install markupsafe==2.0.1

Then Restart the runtime in order to use newly installed versions.

n4321d
  • 1,059
  • 2
  • 12
  • 31