pyechars调用出错解决办法

 

运行程序出错,以下提示,

 

 

用两个步骤解决了,1,升级版本: pip3 install pyecharts==1.8.1 -i https://pypi.tuna.tsinghua.edu.cn/simple/  改为 pip3 install pyecharts==1.9.0 -i https://pypi.tuna.tsinghua.edu.cn/simple/

 

 2、修改engine.py文件,找到engine.py文件,我的在(C:\Users\Administrator\AppData\Local\Programs\Python\Python310\Lib\site-packages\pyecharts\render)目录下

修改第二行from collections import Iterable  为  from collections.abc import Iterable 保存。

 

 程序运行成功。bar.html文件生成。

 

posted @ 2022-03-06 12:47  EROEG  阅读(179)  评论(0编辑  收藏  举报