Pyechart使用数据绘图报错:TypeError: __init__() got an unexpected keyword argument ‘title_pos‘

Pyechart使用数据绘图报错:TypeError: init() got an unexpected keyword argument ‘title_pos’

问题描述—TypeError: init() got an unexpected keyword argument ‘title_pos’

报错信息:

image.png

image.png问题原因

pyecharts这个库版本问题。

解决方法

代码中Geo的实例化方法是老版,适用于0.5版本的pyecharts。
1、在命令提示符中用如下命令卸载当前版本的pyecharts

pip uninstall pyecharts

2、用如下命令安装旧版

pip install pyecharts==0.5.9

如果出现下面问题:

猜你喜欢

转载自blog.csdn.net/Deng872347348/article/details/130027158