在主目录空间非常有限的集群上工作,因此我想将 ~/.conda/pkgs 文件夹的主目录默认设置为另一个目录,但我似乎不知道如何执行此操作。
我尝试过将 .condarc 文件与 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
从这篇文章中获得了清晰的答案:并将在这里为任何尝试谷歌的人发布答案
anaconda .conda 文件夹从 /home/usrxy 移动到其他位置 https://stackoverflow.com/questions/51957827/anaconda-conda-foler-move-from-home-usrxy-to-some-other-location
解决方案有两个:
-
使您的 home 中的 .conda 文件夹不再可写
-
通过以下任一方式将 pkg_dirs 正确添加到 .condarc 文件中
conda config --add pkgs_dirs /PATH/TO/FOLDER
或直接编辑 .condarc 并使用正确的语法
pkgs_dirs:
- /PATH/TO/FOLDER
See Conda 设置文档pkgs_dirs https://conda.io/projects/conda/en/latest/user-guide/configuration/use-condarc.html?highlight=pkgs_dirs#specify-package-directories-pkgs-dirs.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)