Set a path for the ~/.conda/pkgs directory

陌路散爱 提交于 2021-01-27 13:39:38

问题


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:

  1. make your .conda folder in home no longer writeable

  2. 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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!