import pyecharts as pec
car=pec.Bar("阿斯旺","阿迪斯",width=1280,height=720)
car.add(['发额','底纹','阿凡达'],
[5,20,36])
car.render()
```C:\Users\LY\Desktop>pip3 install pyecharts
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Requirement already satisfied: pyecharts in c:\users\ly\appdata\local\programs\python\python37\lib\site-packages (1.5.1)
Requirement already satisfied: jinja2 in c:\users\ly\appdata\local\programs\python\python37\lib\site-packages (from pyecharts) (2.10.3)
Requirement already satisfied: simplejson in c:\users\ly\appdata\local\programs\python\python37\lib\site-packages (from pyecharts) (3.16.0)
Requirement already satisfied: prettytable in c:\users\ly\appdata\local\programs\python\python37\lib\site-packages (from pyecharts) (0.7.2)
Requirement already satisfied: MarkupSafe>=0.23 in c:\users\ly\appdata\local\programs\python\python37\lib\site-packages (from jinja2->pyecharts) (1.1.1)
C:\Users\LY\Desktop>python pyy.py
Traceback (most recent call last):
File "pyy.py", line 2, in
car=pec.Bar("阿斯旺","阿迪斯",width=1280,height=720)
AttributeError: module 'pyecharts' has no attribute 'Bar'
遇到了同样的问题,在CSDN看到了,希望阿里云团队能够给出正确、标准的答案~请查看
参考这个离线安装下:https://blog.csdn.net/sunjinshengli/article/details/86070701
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。