conda env activation before running script in PyCharm/CLion

Viewed 1317

Is there support within PyCharm/CLion to activate a conda env which is being used to execute a given python script? Currently, when I configure a conda env as the interpreter to be used to execute a given script, PyCharm/CLion do not activate the environment before executing the script. If this is not done, any environment variables settings defined in activate.d/env_vars.[sh|bat] are not applied.

1 Answers

As of now, I believe there is not. I had issues with this as well. A workaround would be do re-install Anaconda and tick the "add to path" option, or you can launch PyCharm from the prompt in which you activate your conda environment.

Related