Module not found error in Pycharm , but it is inst

2019-04-26 18:37发布

I have installed Anaconda 3 and pycharm CE after that. I am able to chose the interpreter to be conda environment. But when I try using certain packages such as matplotlib it throws "Module not found error". When I run pip it returns saying that matplotlib is available.

pip install matplotlib
Requirement already satisfied: matplotlib in./anaconda3/lib/python3.6/site-packages

Clearly the package is there and for some reason it does not show up .

Thanks in advance.

2条回答
我想做一个坏孩纸
2楼-- · 2019-04-26 18:56

Found the solution. Went to Pycharm --> Preferences --> Python Interpreter

selected "existing interpreter" and pointed to ~/anaconda3/bin/python

enter image description here

Finally now all the packages installed with Anaconda3 are loaded.

enter image description here

Hope this helps someone .

查看更多
Ridiculous、
3楼-- · 2019-04-26 19:10

Go to Pycharm --> Preferences --> Python Interpreter Select Use Conda Package Manager symbol (green circle)

After it refreshes, select the Install (^N) symbol Search for the installed package

查看更多
登录 后发表回答