conda中安装pytorch是总是超时,通过换源解决
1、在C:\Users\“用户名”\AppData\Roaming中创建文件夹pip

2、在pip文件夹中创建文件pip.ini

3、在pip.ini中输入以下内容,将源换为清华源
[global]
timeout = 60000
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
use-mirrors = true
mirrors = https://pypi.tuna.tsinghua.edu.cn
4、最后安装pytorch大功告成!

浙公网安备 33010602011771号