Conda:选择软件包的下载位置
我的默认conda目录中没有足够的空间,因此我希望将conda软件包下载到其他位置.我在
I don't have enough space in my default conda directory so I want conda packages to be downloaded at a different location. I have a conda environment created and activated at
/different_drive/condaenv
根据我在网上找到的内容,我尝试编辑.condarc文件以使其具有
Based on what I found online, I tried editing the .condarc file to have
pkgs_dirs
- /different_drive/pkgs
并编辑默认目录的权限
/home/user/conda/pkgs/
为只读.但是,我只得到权限被拒绝的错误,因为conda仍尝试将文件下载到默认目录.关于如何更改软件包的下载位置有什么建议吗?
to read-only. However, I just get permission denied errors as conda still tries to download the files to the default directory. Any suggestions on what I can do to change the download location of the packages?
我认为您也许可以使用其他路径创建新环境,并将软件包安装在该路径上.或者更好的是,您可以将现有的conda环境更改为拥有更多空间的新路径.检查此链接.希望这对您有所帮助.
I think you might be able to create a new environment with a different path and have your packages installed on that path. Or better you can change your existing conda environment to a new path where you'd have more space. Check this link out. I hope this helps you out.