当前位置:网站首页>【转载】解决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.等待安装完毕即可!
边栏推荐
- Reading notes 004: Wang Yangming's quotations
- Linkedblockingqueue source code analysis - add and delete
- 【推荐系统基础】正负样本采样和构造
- Chisel tutorial - 02 Chisel environment configuration and implementation and testing of the first chisel module
- mysql8.0 ubuntu20.4
- [programming problem] [scratch Level 2] draw ten squares in December 2019
- FFA与ICGA造影
- Pycharm basic settings latest version 2022
- Alibaba cloud MySQL cannot connect
- Rectification characteristics of fast recovery diode
猜你喜欢
【编程题】【Scratch二级】2019.03 绘制方形螺旋
[basis of recommendation system] sampling and construction of positive and negative samples
面试题详解:用Redis实现分布式锁的血泪史
单机高并发模型设计
Basic learning of SQL Server -- creating databases and tables with code
Coindesk comments on the decentralization process of the wave field: let people see the future of the Internet
The function is really powerful!
Kubectl 好用的命令行工具:oh-my-zsh 技巧和窍门
FFA与ICGA造影
全自动化处理每月缺卡数据,输出缺卡人员信息
随机推荐
Chisel tutorial - 00 Ex.scala metals plug-in (vs Code), SBT and coursier exchange endogenous
如何衡量产品是否“刚需、高频、痛点”
关于组织2021-2022全国青少年电子信息智能创新大赛西南赛区(四川)复赛的通知
Fully automated processing of monthly card shortage data and output of card shortage personnel information
Using Google test in QT
Is 35 really a career crisis? No, my skills are accumulating, and the more I eat, the better
Detailed explanation of interview questions: the history of blood and tears in implementing distributed locks with redis
机器人(自动化)等专业课程创新的结果
全自动化处理每月缺卡数据,输出缺卡人员信息
The difference between get and post
Pycharm basic settings latest version 2022
【leetcode】day1
【编程题】【Scratch二级】2019.03 垃圾分类
limit 与offset的用法(转载)
Relevant methods of sorting arrays in JS (if you want to understand arrays, it's enough to read this article)
95. (cesium chapter) cesium dynamic monomer-3d building (building)
Introduction to programming hardware
Database query - what is the highest data?
【編程題】【Scratch二級】2019.12 飛翔的小鳥
Kubectl's handy command line tool: Oh my Zsh tips and tricks