当前位置:网站首页>【转载】解决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.等待安装完毕即可!
边栏推荐
- Coindesk comments on the decentralization process of the wave field: let people see the future of the Internet
- 如何衡量产品是否“刚需、高频、痛点”
- One click installation with fishros in blue bridge ROS
- webflux - webclient Connect reset by peer Error
- Open display PDF file in web page
- 【史上最详细】信贷中逾期天数统计说明
- 一键免费翻译300多页的pdf文档
- 蓝桥ROS中使用fishros一键安装
- The result of innovation in professional courses such as robotics (Automation)
- Introduction knowledge system of Web front-end engineers
猜你喜欢
QT creator add JSON based Wizard
Problems faced when connecting to sqlserver after downloading (I)
How did a fake offer steal $540million from "axie infinity"?
Restricted linear table
C - linear table
Go learning notes (1) environment installation and hello world
Install sqlserver2019
[the most detailed in history] statistical description of overdue days in credit
Pypharm uses, and the third-party library has errors due to version problems
FFA and ICGA angiography
随机推荐
Rectification characteristics of fast recovery diode
Chisel tutorial - 00 Ex.scala metals plug-in (vs Code), SBT and coursier exchange endogenous
如果在构造函数中抛出异常,最好的做法是防止内存泄漏?
@Detailed introduction of configuration annotation
【编程题】【Scratch二级】2019.09 制作蝙蝠冲关游戏
Install sqlserver2019
Is 35 really a career crisis? No, my skills are accumulating, and the more I eat, the better
The function is really powerful!
Open display PDF file in web page
Chisel tutorial - 02 Chisel environment configuration and implementation and testing of the first chisel module
One click free translation of more than 300 pages of PDF documents
Stm32f1 and stm32cubeide programming example - rotary encoder drive
Database interview questions + analysis
C language learning
CoinDesk评波场去中心化进程:让人们看到互联网的未来
Database query - what is the highest data?
数据湖(十五):Spark与Iceberg整合写操作
一鍵免費翻譯300多頁的pdf文檔
52岁的周鸿祎,还年轻吗?
Binary sort tree [BST] - create, find, delete, output