pyecharts cannot import name 'xxx'

为什么80%的码农都做不了架构师?>>>   hot3.png

运行官方demo的时候报错

>>> from pyecharts.charts import Bar
Traceback (most recent call last):
  File "", line 1, in 
ImportError: cannot import name Bar

解决办法:源码安装

git clone https://github.com/pyecharts/pyecharts.git
cd pyecharts
pip install -r requirements.txt
python setup.py install

编译完成之后需将pyecharts文件夹复制到python安装目录的site-packages下

转载于:https://my.oschina.net/aubao/blog/3034513

你可能感兴趣的:(pyecharts cannot import name 'xxx')