Modify the default path of conda environment cache

Preface: The memory occupied by the conda environment is too large. Every time you create a new virtual environment, you need to add about 5 G. So I want to modify the default path

Problem 1: .condarc folder not found

Create condarc file command
conda config --add channels r

Modify the default path of conda environment cache

Open .condarc
and add
envs_dirs:
-E://Anaconda//envs

Insert image description here
E://Anaconda//envs is the new storage path

test

Create a virtual environment
Insert image description here

Insert image description here
Found that the te path was successfully changed

Guess you like

Origin blog.csdn.net/Aure219/article/details/132045771