Fork me on GitHub

解决pip安装pytorch缓慢问题(直接使用命令)

pip --default-timeout=1000 install --index-url https://mirrors.aliyun.com/pypi/simple torch==1.6.0+cpu torchvision==0.7.0+cpu -f https://download.pytorch.org/whl/torch_stable.html

或者使用清华镜像源:

pip --default-timeout=1000 install --index-url https://pypi.tuna.tsinghua.edu.cn/simple torch==1.6.0+cpu torchvision==0.7.0+cpu -f https://download.pytorch.org/whl/torch_stable.html

也可以去官网选择不同版本的:

https://pytorch.org/ 

 

posted @ 2020-10-02 10:46  西西嘛呦  阅读(2392)  评论(0编辑  收藏  举报