python3.10 使用 pyecharts 报错 cannot import name ‘Iterable‘ from ‘collections‘

53 阅读1分钟

解决办法 找到 pyecharts 模块下的render下的engine.py文件 ​编辑

  修改

from collections import Iterablefrom collections.abc import Iterable

即可

​编辑

3.6之前的版本是不需要带.abc的,3.7就会提示需要加.abc了,据说3.8会停止使用不加abc的情况。