当前位置:首页 > Web开发 > 正文

否则去掉-c pytorch后会默认下载之前下载过的版本(Ver0.1)

2024-03-31 Web开发

标签:

安置过程中呈现CondaHTTPError pytorch-error: CondaHTTPError: HTTP 000 CONNECTION FAILED for url Elapsed: - An HTTP error occurred when trying to retrieve this URL. 解决:

按如下配置.condarc文件,必需添加下面三个,此中Pytorch文件存放在/cloud/。.condarc文件一般windows:C:\users\username\,linux:/home/username/

channels: - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/ - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/ - defaults show_channel_urls: true

执行相应的install语句:https://pytorch.org/

技术图片


重点:去除命令的 -c pytorch,这一点指令指向了conda官方的Pytorch下载库通道,,会非常慢,而且极其容易下载掉败,去失后会到我们之前配置的channel中寻找。而且本环境不能下载过其他的版本,否则去失-c pytorch后会默认下载之前下载过的版本(Ver0.1),仍然不会更新告成。

技术图片


技术图片

————————————————
原文链接:https://blog.csdn.net/weixin_42028879/article/details/89363933

Anaconda解决Pytorch安置(升级)过程中的CondaHTTPError问题

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/web/31270.html