问题
安装pyecharts成功,但是在导入的过程from pyecharts import Bar
时,出现报错
>>> from pyecharts import Bar
Traceback (most recent call last):
File "<input>", line 1, in <module>
ImportError: cannot import name 'Bar'
通过查询网络信息,发现是版本问题,将版本应改为pyecharts==0.5.11
在其中,注意:
pip install pyecharts==0.5.11
pip list # 查看已安装的模块
pip uninstall pyecharts # 卸载某个模块