当前位置:网站首页>【转载】解决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.等待安装完毕即可!
边栏推荐
- [path planning] use the vertical distance limit method and Bessel to optimize the path of a star
- Introduction knowledge system of Web front-end engineers
- Daily question brushing record (16)
- Aitm3.0005 smoke toxicity test
- 某马旅游网站开发(登录注册退出功能的实现)
- P5594 [xr-4] simulation match
- 蓝桥ROS中使用fishros一键安装
- [programming problem] [scratch Level 2] December 2019 flying birds
- 一鍵免費翻譯300多頁的pdf文檔
- 【编程题】【Scratch二级】2019.03 垃圾分类
猜你喜欢
一鍵免費翻譯300多頁的pdf文檔
关于组织2021-2022全国青少年电子信息智能创新大赛西南赛区(四川)复赛的通知
35岁那年,我做了一个面临失业的决定
Seven years' experience of a test engineer -- to you who walk alone all the way (don't give up)
腾讯安全发布《BOT管理白皮书》|解读BOT攻击,探索防护之道
P1067 [noip2009 popularity group] polynomial output (difficult, pit)
Pycharm basic settings latest version 2022
PostGIS learning
[path planning] use the vertical distance limit method and Bessel to optimize the path of a star
Chisel tutorial - 05 Sequential logic in chisel (including explicit multi clock, explicit synchronous reset and explicit asynchronous reset)
随机推荐
[programming problem] [scratch Level 2] December 2019 flying birds
Tools for debugging makefiles - tool for debugging makefiles
About the difference between ch32 library function and STM32 library function
[the most detailed in history] statistical description of overdue days in credit
在网页中打开展示pdf文件
[programming questions] [scratch Level 2] March 2019 garbage classification
Database query - what is the highest data?
如何衡量产品是否“刚需、高频、痛点”
【编程题】【Scratch二级】2019.09 制作蝙蝠冲关游戏
HDU - 1260 Tickets(线性DP)
CoinDesk评波场去中心化进程:让人们看到互联网的未来
Solutions to problems in sqlserver deleting data in tables
Two small problems in creating user registration interface
Is it safe to buy funds online?
【编程题】【Scratch二级】2019.12 绘制十个正方形
面试题详解:用Redis实现分布式锁的血泪史
Introduction knowledge system of Web front-end engineers
Notice on organizing the second round of the Southwest Division (Sichuan) of the 2021-2022 National Youth electronic information intelligent innovation competition
光流传感器初步测试:GL9306
Handwriting a simulated reentrantlock