我应该在Python 2.7中运行我的代码。我想在Python2.7中安装torch,但是当我运行这段代码时,它给了我错误:
代码:
pip install torch==1.3.1+cpu torchvision==0.4.2+cpu -f https://download.pytorch.org/whl/torch_stable.html
ERROR: Could not find a version that satisfies the requirement torch==1.3.1+cpu
还有这段代码:
pip install torch==1.4.0+cpu torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
Error: Could not find a version that satisfies the requirement torch==1.4.0+cpu
有人能帮我吗?非常感谢。
发布于 2020-03-31 16:01:22
在不精确版本的情况下尝试:
python -m pip install torch torchvision --user
但是,如果您确实需要问题中列出的版本,您可以尝试install from source
https://stackoverflow.com/questions/60944179
复制相似问题