python通过pip安装torch错误及解决办法ERROR: Could not find a version that satisfies the requirement torch
Posted 花开花落的个人博客
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python通过pip安装torch错误及解决办法ERROR: Could not find a version that satisfies the requirement torch相关的知识,希望对你有一定的参考价值。
错误代码
pip install torch==1.6.0+cu101 to
rchvision==0.7.0+cu101 -f https://download.pytorch.org/whl/torch_stable.htm
l
Looking in links: https://download.pytorch.org/whl/torch_stable.html
ERROR: Could not find a version that satisfies the requirement torch==1.6.0
+cu101
ERROR: No matching distribution found for torch==1.6.0+cu101
先去官网查找需要安装的版本
这个代码执行也不行,只能去这里手动查找 https://pytorch.org/get-started/previous-versions/
进入错误提示里的下载地址
选择一个然后用迅雷下载
然后cmd进入下载目录,运行pip install 文件名,有的电脑还是会出错,一般情况是废了,建议换个电脑在试,下面是各种错误的截图
使用另种命令安装torch,安装成功了,但是还是用不了
安装cuda前测试是False,安装cuda后就会变成true
cuda安装
以上是关于python通过pip安装torch错误及解决办法ERROR: Could not find a version that satisfies the requirement torch的主要内容,如果未能解决你的问题,请参考以下文章
windows下python3.6 通过pip安装Twisted模块报utf-8错误的解决办法
centos7 安装pip+python3.6以及pip安装错误解决办法