当前位置:网站首页>【转载】解决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.等待安装完毕即可!
边栏推荐
- Redis caching tool class, worth owning~
- 【编程题】【Scratch二级】2019.03 垃圾分类
- P1067 [noip2009 popularity group] polynomial output (difficult, pit)
- webflux - webclient Connect reset by peer Error
- Introduction to programming hardware
- 自动化测试:Robot FrameWork框架90%的人都想知道的实用技巧
- [path planning] use the vertical distance limit method and Bessel to optimize the path of a star
- Robomaster visual tutorial (10) target prediction
- 35岁那年,我做了一个面临失业的决定
- SQL uses the in keyword to query multiple fields
猜你喜欢

Preliminary test of optical flow sensor: gl9306

Trust orbtk development issues 2022

Aitm3.0005 smoke toxicity test

Chisel tutorial - 02 Chisel environment configuration and implementation and testing of the first chisel module

Benchmarking Detection Transfer Learning with Vision Transformers(2021-11)
![[path planning] use the vertical distance limit method and Bessel to optimize the path of a star](/img/0b/e21f7ded7c854272e8cb631ff0154e.png)
[path planning] use the vertical distance limit method and Bessel to optimize the path of a star

面试题详解:用Redis实现分布式锁的血泪史

腾讯安全发布《BOT管理白皮书》|解读BOT攻击,探索防护之道

How to measure whether the product is "just needed, high frequency, pain points"

一个测试工程师的7年感悟 ---- 致在一路独行的你(别放弃)
随机推荐
95. (cesium chapter) cesium dynamic monomer-3d building (building)
P1067 [noip2009 popularity group] polynomial output (difficult, pit)
mysql8.0 ubuntu20.4
一键免费翻译300多页的pdf文档
The difference between get and post
【编程题】【Scratch二级】2019.09 制作蝙蝠冲关游戏
【编程题】【Scratch二级】2019.03 垃圾分类
一鍵免費翻譯300多頁的pdf文檔
QT creator add custom new file / Project Template Wizard
new和delete的底层原理以及模板
10 schemes to ensure interface data security
HDU - 1260 Tickets(线性DP)
FFA与ICGA造影
【推荐系统基础】正负样本采样和构造
全自动化处理每月缺卡数据,输出缺卡人员信息
【编程题】【Scratch二级】2019.09 绘制雪花图案
Robomaster visual tutorial (1) camera
Apng2gif solutions to various problems
How to measure whether the product is "just needed, high frequency, pain points"
【编程题】【Scratch二级】2019.03 绘制方形螺旋