下载torchvision报错:Could not install packages due to an OSError: HTTPSConnectionPool(host=‘files.python

报错如下:Could not install packages due to an OSError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/c0/8f/dfa473f3a6241bff91ae8bb90
5bd0afceb827f37de2917a94b5c4b1112bf/Pillow-9.3.0-cp39-cp39-win_amd64.whl (Caused by ConnectTimeoutError(, 'Con
nection to files.pythonhosted.org timed out. (connect timeout=15)'))

解决办法:命令换成pip install torchvision -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

 

亲测有效!!!watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5Y6754is5bGx5LmI5Za1,size_20,color_FFFFFF,t_70,g_se,x_16

下载torchvision报错:Could not install packages due to an OSError: HTTPSConnectionPool(host=‘files.python_第1张图片 

 

你可能感兴趣的:(python)