Conda:选择软件包的下载位置

编程入门 行业动态 更新时间:2024-10-11 15:20:07
本文介绍了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:选择软件包的下载位置

本文发布于:2023-06-11 18:53:26,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/641399.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:软件包   位置   Conda

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!