安装pytorch时报错。

python下载第三方库发生超时,解决方法:将超时时间延长后重新下载。

pip --default-timeout=1000 install -U 第三方库

上面的方法只是把超时时间延长,如果不行的话,就要更换镜像源。

 posted on 2024-03-04 21:27  会飞的金鱼  阅读(55)  评论(0)    收藏  举报