当前位置:网站首页>【转载】解决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.等待安装完毕即可!
边栏推荐
- 用語雀寫文章了,功能真心强大!
- ROS从入门到精通(九) 可视化仿真初体验之TurtleBot3
- Cmake learning notes (1) compile single source programs with cmake
- Common selectors are
- 腾讯安全发布《BOT管理白皮书》|解读BOT攻击,探索防护之道
- Data Lake (XV): spark and iceberg integrate write operations
- HB 5469 combustion test method for non-metallic materials in civil aircraft cabin
- Solutions to problems in sqlserver deleting data in tables
- Opengl3.3 mouse picking up objects
- SQL uses the in keyword to query multiple fields
猜你喜欢
Solutions to problems in sqlserver deleting data in tables
QT and OpenGL: load 3D models using the open asset import library (assimp)
Introduction to programming hardware
Pycharm basic settings latest version 2022
About the difference between ch32 library function and STM32 library function
PostGIS learning
Problems faced when connecting to sqlserver after downloading (I)
52岁的周鸿祎,还年轻吗?
Aitm3.0005 smoke toxicity test
用語雀寫文章了,功能真心强大!
随机推荐
Usage of limit and offset (Reprint)
Kubectl 好用的命令行工具:oh-my-zsh 技巧和窍门
STM32F1与STM32CubeIDE编程实例-旋转编码器驱动
webflux - webclient Connect reset by peer Error
正畸注意事项(持续更新中)
AWS AWS help error
LinkedBlockingQueue源码分析-新增和删除
Is it safe for tongdaxin to buy funds?
Chisel tutorial - 03 Combinatorial logic in chisel (chisel3 cheat sheet is attached at the end)
单机高并发模型设计
Is it safe to buy funds online?
One click free translation of more than 300 pages of PDF documents
Connect diodes in series to improve voltage withstand
QT and OpenGL: load 3D models using the open asset import library (assimp)
Traduction gratuite en un clic de plus de 300 pages de documents PDF
某马旅游网站开发(登录注册退出功能的实现)
STM32F1與STM32CubeIDE編程實例-旋轉編碼器驅動
About the difference between ch32 library function and STM32 library function
35岁真就成了职业危机?不,我的技术在积累,我还越吃越香了
Cmake learning notes (1) compile single source programs with cmake