Conda Env (Also cant create an issue, or support a customer support request, so posted here)

Steps to Reproduce

Click add new interpreter --> Local Interpreter --> Conda --> Existing Env --> Choose Environment

Run your script.

Expected Result

The script to run in a proper conda env.

Actual Result

The script runs, using the conda env, but it is not activated, so some things can error. Also conda envronment variables are also not present.

 

How I Work Around

Use cmd, to do: conda activate my_env

in same cmd window, open C:\path\to\pycharm.exe

Now it works

(As per top answer here: https://stackoverflow.com/questions/51455571/conda-virtual-environment-not-working-with-pycharm)

What I need

I cant find any information on how this is meant to work correctly. I cant remember which cmd window was used to open pycharm so this does not work for me running in a multi env workflows.

0

请先登录再写评论。