Use Conda environment in pycharm

后端 未结 6 2011
南方客
南方客 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:16

    open

    pycharm/preferences/project/Project Interpreter

    And check existing interpreter. Conda environments may already be listed there.

    If not exists, you can create a new conda environment with "Create Conda Env" button

    If you are looking for a specific conda environment you can use 'add local'. When you click 'add local' you will input conda environment path + /bin/python

    You can list all conda environment in your system with following commnad.

    >>conda info --env
    # conda environments:
    #
    tensorflow            *  /Users/username/miniconda3/envs/tensorflow
    

    you can chose the approach best fits your needs.

提交回复
热议问题