设置〜/.conda/pkgs目录的路径 [英] Set a path for the ~/.conda/pkgs directory
问题描述
在主目录上的空间非常有限的群集上工作,因此我想将主目录中的〜/.conda/pkgs文件夹的默认值设置为另一个软件包,而我似乎无法弄清楚如何做这个.
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.
我尝试将.condarc文件与pkg_dirs一起使用:
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
推荐答案
这篇文章的目的是清楚的:并且会在此处将答案发布给尝试使用Google的任何人
Gained clarity from this post: and will post answer here for anyone trying to Google
anaconda .conda foler从/home/usrxy到其他位置
解决方案有两个:
-
使您在家中的.conda文件夹不再可写
make your .conda folder in home no longer writeable
通过以下任一方法将pkg_dirs正确添加到.condarc文件中conda config --add pkgs_dirs/PATH/TO/FOLDER
Add the pkg_dirs correctly to the .condarc file by either conda config --add pkgs_dirs /PATH/TO/FOLDER
或使用正确的语法直接编辑.condarc
or editing your .condarc directly and using the correct syntax
pkgs_dirs:
- /PATH/TO/FOLDER
这篇关于设置〜/.conda/pkgs目录的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!