pip安装python工具包时常出现如下报错:
Retrying(Retry(total=4,connect=None,read=None,redirect=None, status=None)) after connection broken by 'ProxyError
解决办法如下:
解决办法:
pip install 工具包名称 -i url( 其他pip源)
国内几个pip源如下:
阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
例:安装pymysql
pip install pymysql - i https://pypi.tuna.tsinghua.edu.cn/simple/
如下图,安装成功!