pyecharts中导入Bar出现的问题
安装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 # 卸载某个模块
安装pyecharts之后运行第一个图表的提示
ERROR:lml.utils:failed to import pyecharts_snapshot Traceback (most recent call last): File "E:\py\lib\site-packages\lml\utils.py", line 43, in do_import plugin_module = __import__(plugin_module_name) ModuleNotFoundError: No module named 'pyecharts_snapshot'
pyecharts安装之后,还要安装两个东西。
pip install pyecharts_snapshot #测试可以解决这个问题
pip install wheel