问题
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