Conda:选择软件包的下载位置 [英] Conda: Choose where packages are downloaded

查看:1612
本文介绍了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.

这篇关于Conda:选择软件包的下载位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆