当前位置:网站首页>【转载】解决conda安装pytorch过慢的问题
【转载】解决conda安装pytorch过慢的问题
2022-07-07 22:03:00 【UQI-LIUWJ】
在使用conda对pytorch进行安装时,由于原镜像下载过慢,甚至终止的情况,可采用以下方案进行解决
1.添加清华园镜像:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes(这个命令的意思是从channel中安装包时显示channel的url,这样就可以知道包的安装来源了)
2.开始安装pytorch,默认已经在pytorch官网拿到符合自己安装要求的命令了,例如:
conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch
注意:要想使用添加的镜像源进行安装,则需要将命令最后的-c pytorch去掉;(因为这表示从原镜像中去下载)
3.所以,直接执行:
conda install pytorch torchvision torchaudio cudatoolkit=10.2
4.等待安装完毕即可!
边栏推荐
- 一鍵免費翻譯300多頁的pdf文檔
- Codeworks 5 questions per day (average 1500) - day 8
- Chisel tutorial - 00 Ex.scala metals plug-in (vs Code), SBT and coursier exchange endogenous
- [programming problem] [scratch Level 2] draw ten squares in December 2019
- Chisel tutorial - 01 Introduction to Scala
- Binary sort tree [BST] - create, find, delete, output
- limit 与offset的用法(转载)
- 蓝桥ROS中使用fishros一键安装
- FFA与ICGA造影
- SQL uses the in keyword to query multiple fields
猜你喜欢
如何衡量产品是否“刚需、高频、痛点”
Rectification characteristics of fast recovery diode
C - linear table
Is 35 really a career crisis? No, my skills are accumulating, and the more I eat, the better
Automated testing: robot framework is a practical skill that 90% of people want to know
一键免费翻译300多页的pdf文档
Chisel tutorial - 02 Chisel environment configuration and implementation and testing of the first chisel module
Set up personal network disk with nextcloud
SQL connection problem after downloading (2)
FFA and ICGA angiography
随机推荐
How to measure whether the product is "just needed, high frequency, pain points"
C language 005: common examples
Two small problems in creating user registration interface
One click free translation of more than 300 pages of PDF documents
手写一个模拟的ReentrantLock
Database interview questions + analysis
52岁的周鸿祎,还年轻吗?
Chisel tutorial - 04 Control flow in chisel
QT creator add JSON based Wizard
Traduction gratuite en un clic de plus de 300 pages de documents PDF
When creating body middleware, express Is there any difference between setting extended to true and false in urlencoded?
[path planning] use the vertical distance limit method and Bessel to optimize the path of a star
P1067 [noip2009 popularity group] polynomial output (difficult, pit)
【推荐系统基础】正负样本采样和构造
一鍵免費翻譯300多頁的pdf文檔
Tools for debugging makefiles - tool for debugging makefiles
One click installation with fishros in blue bridge ROS
Codeworks 5 questions per day (average 1500) - day 8
智慧监管入场,美团等互联网服务平台何去何从
一键免费翻译300多页的pdf文档