anaconda .conda foler move from /home/usrxy to some other location

回眸只為那壹抹淺笑 提交于 2019-12-22 00:33:56

问题


I have a RHEL server with Anaconda3 installed. Each user in the system gets 2 GiG space in the /home/ folder and another large folder in a mounted drive. When the user is trying to create a conda environment using conda create -n my_env it fills all the .tar files in .conda folder and installation breaks. Is there a way I specify a custom location for the .conda folder.

Best Jagan


回答1:


you can use --prefix option documentation

Option 1: If you want to create your virtual environment in current directory then use

conda create --prefix=envName python=X.X

Option 2: if you want to mention the directory then give full path

conda create --prefix=/YourPath/yourEnvName python=x.x

Option 3: If you dont want to explicitly mention the path everytime and want all your environments to be stored somewhere else by default, you can set that up in your .condarc file documentation

You can do this in command line using:

conda config --add envs_dirs <path to directory>

envs_dirs in your .condarc file will add an additional location to the package cache search path.



来源:https://stackoverflow.com/questions/51957827/anaconda-conda-foler-move-from-home-usrxy-to-some-other-location

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