Get the Anaconda prompt running in the PyCharm terminal

Nicholas picture Nicholas · Mar 20, 2018 · Viewed 12.1k times · Source

I have Miniconda3 installed at C:\Users\me\Miniconda3, and my 'Project Interpreter' within PyCharm set to my conda environment, and that is all working correctly. However it appears that conda is not set for my path variable as if I type conda into the PyCharm Terminal I get

'conda' is not recognized as an internal or external command, operable program or batch file.

Is there a way to set the PyCharm Terminal to behave like the Anaconda Prompt?

I have Windows 10, PyCharm 2018.1 EAP, and conda 4.4.10 installed.

Answer

dd. picture dd. · May 2, 2018

You can change pycharm settings to achieve this.

In Settings > Tools > Terminal, change the Shell path as following:

cmd.exe "/K" "C:\Users\me\Miniconda3\Scripts\activate.bat" "C:\Users\me\Miniconda3"

And the C:\Users\me\Miniconda3 can be replaced by either one of your conda environment name such as base

Close the Terminal and reopen it, you will get the Anaconda prompt.

It works in my PyCharm Community Edition 2018.1.2