Reputation:
conda list
lists everything.
pycharm is using the conda virtual environment.
why isn't any of the packages listed?
Upvotes: 4
Views: 6453
Reputation: 129
I was able to solve the issue(for Ubuntu 16.04) by:-
By going to File > Settings > Project: Name of your project(drop-down menu) > Project Interpreter > Clicking on the gear icon from the right side of the panel > Add Local > From left side of the panel select Conda Environment > From right side of the panel select Existing Environment, now paste the path of your Python Interpreter where it is asked. You can get this path using the command which python
. Make sure that you tick on the checkbox 'Make available to all projects', so, that you won't have to repeat the process for every project.
Now restart Pycharm and you will be good to go.
Upvotes: 6
Reputation: 5935
As roganjosh
mentioned, it looks like the conda list
in your bash
terminal is showing all the packages in your root environment whereas PyCharm is using an environment entitled untitled
. It sounds like you want to be using your root environment in PyCharm. If that is the case then you need to change your interpreter.
Probably the simplest way to do that is to do which python
in your terminal, where you are seeing all those packages, and then select that python
path in PyCharm by (1) clicking the gear icon in the upper right hand corner of your screenshot (2) choose "Add Local" (3) paste in that python path.
Upvotes: 3