Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple WARNING: Retrying (Retry(total=4, conne

错误描述

在用anaconda prompt安装python第三方包时出现错误
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ReadTimeoutError(“HTTPSConnectionPool(host=‘pypi.tuna.tsinghua.edu.cn’, port=443): Read timed out. (read timeout=15)”)’: /simple/pyqt5/

用尽一切办法也没有解决,最终寻找各种资料得以解决,利用以下语句安装成功

pip install PyQt5 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

其中pip install PyQt5 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com 中加粗部分为需要安装的包

参考博客 https://blog.csdn.net/lsf_007/article/details/87931823

你可能感兴趣的:(pycharm,python,python,pip)