当前位置:网站首页>【转载】解决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.等待安装完毕即可!
边栏推荐
- 腾讯安全发布《BOT管理白皮书》|解读BOT攻击,探索防护之道
- Pigsty:开箱即用的数据库发行版
- Cmake learning notes (1) compile single source programs with cmake
- 数据库查询——第几高的数据?
- Magic fast power
- LinkedBlockingQueue源码分析-新增和删除
- Chisel tutorial - 00 Ex.scala metals plug-in (vs Code), SBT and coursier exchange endogenous
- 全自动化处理每月缺卡数据,输出缺卡人员信息
- How to put recyclerview in nestedscrollview- How to put RecyclerView inside NestedScrollView?
- 35岁那年,我做了一个面临失业的决定
猜你喜欢
Install sqlserver2019
Laser slam learning (2d/3d, partial practice)
10 schemes to ensure interface data security
ROS从入门到精通(九) 可视化仿真初体验之TurtleBot3
Chisel tutorial - 05 Sequential logic in chisel (including explicit multi clock, explicit synchronous reset and explicit asynchronous reset)
面试题详解:用Redis实现分布式锁的血泪史
The result of innovation in professional courses such as robotics (Automation)
[programming problem] [scratch Level 2] March 2019 draw a square spiral
每日刷题记录 (十六)
【编程题】【Scratch二级】2019.12 飞翔的小鸟
随机推荐
Data analysis series 3 σ Rule / eliminate outliers according to laida criterion
80%的人答错,苹果logo上的叶子到底朝左还是朝右?
P5594 [xr-4] simulation match
STM32F1与STM32CubeIDE编程实例-旋转编码器驱动
机器人(自动化)等专业课程创新的结果
FFA and ICGA angiography
How did a fake offer steal $540million from "axie infinity"?
DataGuard active / standby cleanup archive settings
【推荐系统基础】正负样本采样和构造
webflux - webclient Connect reset by peer Error
Tools for debugging makefiles - tool for debugging makefiles
关于组织2021-2022全国青少年电子信息智能创新大赛西南赛区(四川)复赛的通知
Daily question brushing record (16)
Chisel tutorial - 00 Ex.scala metals plug-in (vs Code), SBT and coursier exchange endogenous
Chisel tutorial - 03 Combinatorial logic in chisel (chisel3 cheat sheet is attached at the end)
【編程題】【Scratch二級】2019.12 飛翔的小鳥
用語雀寫文章了,功能真心强大!
How to measure whether the product is "just needed, high frequency, pain points"
Problems faced when connecting to sqlserver after downloading (I)
Teach you to make a custom form label by hand