解决torch安装时版本找不到报错问题
报错Could not find a version that satisfies the requirement torch==1.0.0 (from versions: none)
解决:
1、换镜像,比如pip install -i http://mirrors.aliyun.com/pypi/simple/ torch==1.0.0
2、去官网找whl文件。老版本这里都有Previous PyTorch Versions | PyTorch。可以进https://download.pytorch.org/whl/cpu/torch_stable.html下载torch和torchvision的whl文件。
3、把pip的下载链接改为官网,比如pip install torch==1.0.0 -f https://download.pytorch.org/whl/torch_stable.html
4、如果可以的话,换个相近的高版本吧