先附上,运行无报错的Pyecharts库的安装代码!
pip install pyecharts==0.5.5 -i https://mirrors.aliyun.com/pypi/simple/
Pyecharts库的安装没有遇到多大的问题,主要是会出现**“Read timed out”**的情况。
第一次安装时,没有加镜像。
pip install pyecharts==0.5.5
出现的问题
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ReadTimeoutError(“HTTPSConnectionPool(host=‘pypi.org’, port=443): Read timed out. (read timeout=15)”)’: /simple/pyecharts/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ReadTimeoutError(“HTTPSConnectionPool(host=‘pypi.org’, port=443): Read timed out. (read timeout=15)”)’: /simple/pyecharts/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ReadTimeoutError(“HTTPSConnectionPool(host=‘pypi.org’, port=443): Read timed out. (read timeout=15)”)’: /simple/pyecharts/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ReadTimeoutError(“HTTPSConnectionPool(host=‘pypi.org’, port=443): Read timed out. (read timeout=15)”)’: /simple/pyecharts/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ReadTimeoutError(“HTTPSConnectionPool(host=‘pypi.org’, port=443): Read timed out. (read timeout=15)”)’: /simple/pyecharts/
ERROR: Could not find a version that satisfies the requirement pyecharts0.5.5 (from versions: none)
ERROR: No matching distribution found for pyecharts0.5.5
第二次安装,加了镜像,但出现了超时的情况
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyecharts==0.5.5
到网上查找的解决方式为设置超时时间**“pip --default-timeout=100 install …”**
然后有了下面的代码
pip --default-timeout=100 install -i https://pypi.tuna.tsinghua.edu.cn/simple pyecharts==0.5.5
但是,问题还是没解决
最终我觉得,换个镜像,然后… …,啪得一声就装好了!
pip install pyecharts==0.5.5 -i https://mirrors.aliyun.com/pypi/simple/
离谱!