linux报错

linux 安装pytorch报错

bash 复制代码
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64/current_repodata.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.cn/anaconda/pkgs/main/linux-64'

这大概是安全的问题,你的conda源使用的是https协议,比如我的

"/home/fcgna_xcb/.condarc"

内容如下:

bash 复制代码
channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
  - 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/Paddle/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/fastai/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
show_channel_urls: true
ssl_verify: false

把每一个https改成http就可以了

更改后的如下:

bash 复制代码
channels:
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/Paddle/
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/fastai/
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
show_channel_urls: true
ssl_verify: false
相关推荐
zhongwenhua5201 分钟前
tina linux新增mpp程序
linux·mpp·v853
斯普信专业组3 分钟前
多输入(input)多输出(output)验证
运维·服务器·网络·fluent-bit
白鹭19 分钟前
apache详细讲解(apache介绍+apache配置实验+apache实现https网站)
linux·运维·apache·apache配置·apache实现https网站
Anthony_23121 分钟前
MySQL的常用命令
运维·数据库·mysql·adb·docker
TimberWill34 分钟前
idea、服务器、数据库环境时区不一致问题
服务器·数据库·intellij-idea
✎﹏赤子·墨筱晗♪38 分钟前
基于Nginx实现反向代理、负载均衡与动静分离完整部署指南
运维·nginx·负载均衡
CesareCheung43 分钟前
JMeter压测过程中监控服务器CPU及内存的方法
运维·服务器·jmeter
傻傻虎虎1 小时前
【Docker】常用帮忙、镜像、容器、其他命令合集(1)
运维·docker·容器
被遗忘的旋律.1 小时前
Linux驱动开发笔记(十)——中断
linux·驱动开发·笔记
草履虫建模1 小时前
在 RuoYi 中接入 3D「园区驾驶舱」:Vue2 + Three.js + Nginx
运维·开发语言·javascript·spring boot·nginx·spring cloud·微服务