Python 使用pip install 时报错(WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, )

出错:使用python 命令pip install pandas如下图:

Python 使用pip install 时报错(WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, )_第1张图片

解决方法:
python -m pip install --upgrade pip  -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

此时运行 pip install pandas 成功。

参考一:关于Python3中的WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): - 爱码网

参考二:

Python学习:解决pip总是WARNING: Retrying (Retry(total=4...-CSDN博客

你可能感兴趣的:(python,pip,开发语言)