Cecilia
Cecilia

Reputation: 4741

Is it possible to use an Anaconda Python 3 environment together with Pycharm?

My basic problem is that I want to install scipy on a Window's machine for Python 3 and use Pycharm as my development environment.

The suggestion from the Scipy Documentation as well as several StackOverflow posts (Installing NumPy and SciPy on 64-bit Windows (with Pip), Trouble installing SciPy on windows, etc.) is to use Anaconda to install a prebuilt scipy and avoid the Fortran and C compilers.

I've used Anaconda for Python 2.7 in the past, so I created an Anaconda environment for Python 3 following these directions.

Command to create the environment

conda create -n py3k python=3 anaconda

And the command to activate the environment

source activate py3k

This works fine, but I do most of my development in PyCharm and I can't figure out how to activate the Anaconda environment from PyCharm. Is there a way to do this or should I take another approach?

Upvotes: 4

Views: 767

Answers (1)

rth
rth

Reputation: 11199

Explanations how to configure PyCharm with Anaconda can be found in the documentation.

In PyCharm preferences you can just select the correct python interpreter under,

Project Interpreter > Python Interpreters

As pointed out by @Cecilia, in the case when a virtual environment (e.g. named py3k) is used with Anaconda, the correct python interpreter is located under,

~/Anaconda/envs/py3k/python.exe

Upvotes: 4

Related Questions