我正在尝试使用pip安装Pythorch 1.3:pip3 install torch==1.3.1+cpu torchvision==0.4.2+cpu -f https://download.pytorch.org/whl/torch_stable.html
它失败,并显示以下错误消息:
^{pr2}$
使用详细模式(-v)提供更多信息:Skipping link: unsupported archive format: .html:
https://download.pytorch.org/whl/torch_stable.html (from -f)
Analyzing links from page https://pypi.org/simple/torch/
看起来pip无法使用我提供的url,将从另一个url获取包。
它最多支持Python3.6。因为我已经安装了3.7.5(最初提供的URL支持),所以没有一个包匹配并且失败了。在
我可以降级到3.6,但由于3.7是官方支持的,我想先解决这个问题。在
编辑:pip是最新的。我在Windows10和Windows7 64位计算机上都遇到了完全相同的错误。
另外:PyTorch页面上写着:Please ensure that you have met the prerequisites below (e.g., numpy)
但AFAIK没有在该部分列出任何库。在我的测试中,numpy已经安装并且是最新的。在