解决Python使用pip install报错的问题(WARNING: Retrying)

Python中使用pip install 命令安装pyecharts包时报错

一、错误如下图所示

出错显示:
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000002787D928D68>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/pyecharts/在conda命令行中出错显示

二、错误解决办法

1.更新pip

python -m pip install –upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple some-package

2.设置镜像源

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

3.重新安装

pip install pyecharts

三、结果

解决问题,安装成功。

作者:weixin_43679228

物联沃分享整理
物联沃-IOTWORD物联网 » 解决Python使用pip install报错的问题(WARNING: Retrying)

发表回复