问题
Working on a cluster with very limited space on my home directory, so I want to set the default from the home directory for ~/.conda/pkgs folder to be another package and I can't seem to figure out how to do this.
I have tried using the .condarc file with pkg_dirs:
channels:
- conda-forge
- bioconda
- defaults
pkg_dirs: my/new/folder
Ideally this would make the creation and installation of the .conda folder in the new path not my home directory
回答1:
Gained clarity from this post: and will post answer here for anyone trying to Google
anaconda .conda foler move from /home/usrxy to some other location
The solution is two-fold:
make your .conda folder in home no longer writeable
Add the pkg_dirs correctly to the .condarc file by either conda config --add pkgs_dirs /PATH/TO/FOLDER
or editing your .condarc directly and using the correct syntax
pkgs_dirs:
- /PATH/TO/FOLDER
来源:https://stackoverflow.com/questions/57697342/set-a-path-for-the-conda-pkgs-directory