Use Conda environment in pycharm

后端 未结 6 2006
南方客
南方客 2020-11-28 05:41

Conda env is activated using source activate env_name.

How can I activate the environment in pycharm ?

6条回答
  •  清歌不尽
    2020-11-28 06:11

    As mentioned in one of the comments above, activating an environment can run scripts that perform other actions such as setting environment variables. I have worked in one environment that did this. What worked in this scenario was to:

    • open a conda prompt
    • activate the environment
    • run pycharm from the conda prompt

    Pycharm then had access to the environment variables that were set by activating the environment.

提交回复
热议问题