No matching distribution found for torch==1.2.0 解决方法
一、环境
系统环境:Windows10
Python版本:Python3.6.0
IDE:Pycharm、Spyder
二、问题
今天用 pip 安装torch,安装方式如下:
pip install torch==1.2.0 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com 1
出现了如下错误:
ERROR:Could not find a version that satisfies the requirement torch1.2.0
ERROR:No matching distribution found for torch1.2.0
三、解决方法
关于"Could not find a version that satisfies…"这类问题,网上说的比较多的主要有这么几种方法:
1、更新pip
python -m pip install --upgrade pip
2、用国内的镜像源来加速网络
pip install 包名 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
其中 --trusted-host pypi.douban.com 是为了获得 SSL 证书的认证。
3. 最终解决
以上方法都试了,然而都没有效果…
恰在此时,不经意间看见一篇文章 Windows 上报错:Could not find a version that satisfies the requirement torch==0.4.1
与我所碰到的问题很类似!于是借鉴这位网友的做法,用 pip 命令从 Pytorch 官网下载指定的版本:
https://www.jianshu.com/p/f54a01419330?utm_campaign=haruki
pip install torch==1.2.0 -f https://download.pytorch.org/whl/torch_stable.html 1
但一波刚平,一波又起,这时又报了另一个错:Could not install packages due to an EnvironmentError:[WinError 5] Permission denied
这是由于权限不够,于是将指令改为 pip install --user torch==1.3.0 -f https://download.pytorch.org/whl/torch_stable.html 即可。
当然,也可使用镜像源加速下载,相应的命令为:
pip install --user torch==1.3.0 -f https://download.pytorch.org/whl/torch_stable.html -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com。 1
最后成功安装~
pip install --user torch==1.2.0 -f https://download.pytorch.org/whl/torch_stable.html -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com 1
相关知识
No CUDA runtime is found, using CUDA
Could not find a version that satisfies the requirement torch==1.1.0.post2)
养宠物的人要做“TORCH”检查
ToRCH感染防控,可以从这篇文章开始
Nothing found for Roll 2020 11 10 133779
河南省鸟类分布新纪录——白颊噪鹛
南充市同域分布的白腰文鸟白颊噪鹛和白头鹎巢和巢材比较研究
Population Biology and Altitudinal Distribution of Caboti Tragopans in Jiangxi Wuyishan Nature Reserve
踩坑指南!pytorch1.2.0安装!又是猛男落泪的一天!
基于Pytorch框架的深度学习densenet121神经网络鸟类行为识别分类系统源码
网址: No matching distribution found for torch==1.2.0 解决方法 https://www.mcbbbk.com/newsview403438.html
上一篇: 北京女子给宠物狗挤肛门腺致感染, |
下一篇: tf |
推荐分享

- 1我的狗老公李淑敏33——如何 5096
- 2南京宠物粮食薄荷饼宠物食品包 4363
- 3家养水獭多少钱一只正常 3825
- 4豆柴犬为什么不建议养?可爱的 3668
- 5自制狗狗辅食:棉花面纱犬的美 3615
- 6狗交配为什么会锁住?从狗狗生 3601
- 7广州哪里卖宠物猫狗的选择性多 3535
- 8湖南隆飞尔动物药业有限公司宠 3477
- 9黄金蟒的价格 3396
- 10益和 MATCHWELL 狗 3352