解决pip安装出现超时
2020-05-29 本文已影响0人
V7hinc
直接pip3 install django,出现超时重试
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000023B12ED0400>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/django/
在命令后加上国内镜像源瞬间解决
pip3 install django -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
image.png