Home >Computer Tutorials >Computer Knowledge >The default location of the conda virtual environment
This article discusses the default location for Conda virtual environments on different operating systems (Linux, macOS, and Windows) and provides instructions on how to find and change the default path.
Where is the default location for conda virtual environments?
On Linux, macOS, and Windows, the default location for conda virtual environments is:
/Users/{USER}/miniconda3/envs
for macOS/Users/{USER}/miniconda3/envs
for macOS/home/{USER}/miniconda3/envs
for LinuxC:Users{USER}miniconda3envs
for WindowsHow can I find the default path for conda virtual environments?
You can find the default path for conda virtual environments using the following command:
conda env config --get paths.envs
Is there a way to change the default location for conda virtual environments?
Yes, you can change the default location for conda virtual environments by setting the CONDA_ENVS_PATH
environment variable. For example, to set the default location to /opt/conda/envs
/home/{USER}/miniconda3/envs
for Linux
C:Users{USER}miniconda3envs
for Windows🎜🎜How can I find the default path for conda virtual environments?🎜🎜🎜You can find the default path for conda virtual environments using the following command:🎜🎜conda env config --get paths.envs
🎜🎜🎜Is there a way to change the default location for conda virtual environments?🎜🎜🎜Yes, you can change the default location for conda virtual environments by setting the CONDA_ENVS_PATH
environment variable. For example, to set the default location to /opt/conda/envs
, you would use the following command:🎜<code>export CONDA_ENVS_PATH=/opt/conda/envs</code>
The above is the detailed content of The default location of the conda virtual environment. For more information, please follow other related articles on the PHP Chinese website!