报错如下: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(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x00000259CB4C0760>, '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
文章来源地址https://www.toymoban.com/news/detail-610227.html
亲测有效!!!
文章来源:https://www.toymoban.com/news/detail-610227.html
到了这里,关于下载torchvision报错:Could not install packages due to an OSError: HTTPSConnectionPool(host=‘files.python的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!