Anaconda Python: where are the virtual environments stored?
If you activate the environment you're interested in, you can find that answer in the environment variables.
on MacOS/Linux:
source activate python35echo $CONDA_PREFIX
on Windows:
conda activate python35echo %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 python35which python
on Windows:
conda activate python35where python
That should return the path you're looking for.
You can run the command conda info
.
This will output something like this:
envs directories : C:\Users\Geo\.local\Miniconda3\envs C:\Users\Geo\.conda\envs C:\Users\Geo\AppData\Local\conda\conda\envs
I have installed conda at C:\Users\Geo\.local\Miniconda3.
Then with the command conda info -e
you get the location of each environment.
(base) C:\Users\Geo>conda info -e# conda environments:#miniconda2 C:\Users\Geo\.conda\envs\miniconda2base * C:\Users\Geo\.local\Miniconda3anaconda3 C:\Users\Geo\.local\Miniconda3\envs\anaconda3ml C:\Users\Geo\.local\Miniconda3\envs\ml
Your environments are located in Anaconda3\envs\<yourEnv_directory>\