Use Conda environment in pycharm

Abhinav Rai picture Abhinav Rai · Mar 12, 2017 · Viewed 76.1k times · Source

Conda env is activated using source activate env_name.

How can I activate the environment in pycharm ?

Answer

wasabi picture wasabi · Sep 9, 2017

open

pycharm/preferences/project/Project Interpreter

And check existing interpreter. Conda environments may already be listed there.

enter image description here

If not exists, you can create a new conda environment with "Create Conda Env" button

enter image description here

If you are looking for a specific conda environment you can use 'add local'. When you click 'add local' you will input conda environment path + /bin/python

You can list all conda environment in your system with following commnad.

>>conda info --env
# conda environments:
#
tensorflow            *  /Users/username/miniconda3/envs/tensorflow

you can chose the approach best fits your needs.