pycharm安装第三方库报连接错误
问题:
pycharm安装包出现Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError
解决:
1.进入python安装目录 D:\Program Files (x86)\python>
2.执行如下语句: pip install XXX -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
XXX是需要安装的第三方包名
3.安装完之后查看XXX信息,例如requests:pip show requests