当前位置:网站首页>pytorch installation error
pytorch installation error
2022-08-03 09:34:00 【Nanlu Seventeen】
纠正
安装pytorch
The first thing to do is to create a virtual environment:conda activate pytorch
从(base)->(pytorch)
结果出现错误
Solving environment: failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/noarch/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.
SSLError(MaxRetryError('HTTPSConnectionPool(host=\'mirrors.tuna.tsinghua.edu.cn\', port=443): Max retries exceeded with url: /anaconda/cloud/conda-forge/noarch/repodata.json (Caused by SSLError(SSLError("bad handshake: Error([(\'SSL routines\', \'ssl3_get_server_certificate\', \'certificate verify failed\')])")))'))
Because of normal installationpytorchis to be added later-c pytorch 的,But I originally wanted to use Tsinghuayuan here
这里输入
conda config --set show_channel_urls yes让condaTell us which mirror source to use when downloading
之后输入conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch开始安装,The result is an error
原因可能是:Tsinghua source is wrong,找到C:\Users\Administrator文件下的.condarcThe file will be changed to :
channels:
- defaults
show_channel_urls: true
default_channels:
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:
conda-forge: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
msys2: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
bioconda: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
menpo: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
pytorch: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
simpleitk: http://mirr
输入:conda config --add channels conda-forge
之后再在Anaconda prompt中输入conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch 就安装成功了,
判断是否安装成功
输入pip list 出现
或者输入python,之后输入import torch If no error is reported, the installation is successful
边栏推荐
- 自动化测试浏览器驱动下载版本对应关系
- Redis和MySQL如何保持数据一致性
- 命令行加载特效 【cli-spinner.js】 实用教程
- Can't get data for duplicate urls using Scrapy framework, dont_filter=True
- 浅析什么是伪类和伪元素?伪类和伪元素的区别解析
- 【LeetCode】老虎证券面试-括号嵌套且满足优先级
- For heavy two-dimensional arrays in PHP
- Ultra-detailed Asp.net uses SSL two-way authentication, one article is enough
- Exception: Dataset not found. Solution
- mysqldump导出提示:mysqldump [Warning] Using a password on the command line interface can be insecure
猜你喜欢
机器学习(公式推导与代码实现)--sklearn机器学习库
GO开发环境配置
分区分表(一)
MySQL 主从切换步骤
MySQL的主从复制
10 minutes to get you started chrome (Google) browser plug-in development
select statement in go
ClickHouse 数据插入、更新与删除操作 SQL
Machine learning (formula derivation and code implementation)--sklearn machine learning library
MySQL8重置root账户密码图文教程
随机推荐
AD环境搭建
基于百度AI和QT的景物识别系统
Flink Yarn Per Job - 创建启动Dispatcher RM JobManager
MySQL的存储过程
文章列表的显示 以及创建文章 还有文章详情的基本
MySQL-DDL数据定义语言-约束
【字节面试】word2vector输出多少个类别
array of function pointers
Redis和Mysql数据同步的两种方案
Go的Gin框架学习
Flink Yarn Per Job - Submit application
面试突击71:GET 和 POST 有什么区别?
MYSQL 修改时区的几种方法
LeetCode第三题(Longest Substring Without Repeating Characters)三部曲之二:编码实现
php中去重二维数组
mysql数据库配置性能调优
MySQL 免安装版的下载与配置教程
cmd(命令行)操作或连接mysql数据库,以及创建数据库与表
mysql 事务原理详解
二叉查找树的综合应用