windos 10 pip 下载 pytorch 豆瓣源

要下载pytorch ... 国外的源一卡 两个多少小时.

找到了豆瓣源

具体如下

windos 10   pip 下载   pytorch  豆瓣源

cmd 中 创建虚拟环境

执行命令

pip install torch==1.5.1+cpu torchvision==0.6.1+cpu -f https://download.pytorch.org/whl/torch_stable.html

然后在后界面 加上 这句 即可

-i https://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com