Anaconda Python: where are the virtual environments stored?

后端 未结 9 1299
南方客
南方客 2020-12-01 02:54

I am new to Anaconda Python and I am setting up a project in Sublime Text 3. I have installed Anaconda and created a virtual environment using:

conda create          


        
9条回答
  •  伪装坚强ぢ
    2020-12-01 03:14

    If you activate the environment you're interested in, you can find that answer in the environment variables.

    on MacOS/Linux:

    source activate python35
    echo $CONDA_PREFIX
    

    on Windows:

    conda activate python35
    echo %CONDA_PREFIX%
    

    You can also run conda info --envs, and that will show the paths to all your environments.

    To get the path to the instance of python being used by a particular environment, do the following:

    on MacOS/Linux:

    source activate python35
    which python
    

    on Windows:

    conda activate python35
    where python
    

    That should return the path you're looking for.

提交回复
热议问题