linux报错汇总

编程入门 行业动态 更新时间:2024-10-20 01:26:28

linux<a href=https://www.elefans.com/category/jswz/34/1771188.html style=报错汇总"/>

linux报错汇总

1. linux 安装pytorch报错

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <.json>
Elapsed: -An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
'https//mirrors.tuna.tsinghua.edu/anaconda/pkgs/main/linux-64'

这大概是安全的问题,你的conda源使用的是https协议,比如我的
“/home/fcgna_xcb/.condarc”
内容如下:

channels:-       /
show_channel_urls: true
ssl_verify: false

把每一个https改成http就可以了
更改后的如下:

channels:-       /
show_channel_urls: true
ssl_verify: false

2.pip install -U openmim 报错

输入

pip install -U openmim

报错

有可能是服务器在其他国家,需要手动设置

把这三行复制到~/.bashrc里

export http_proxy=http://127.0.0.1:3128
export https_proxy=${http_proxy}
export ftp_proxy=${http_proxy}

source ~/.bashrc

更多推荐

linux报错汇总

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

发布评论

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

>www.elefans.com

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