开发者社区> 问答> 正文

python安装阿里云库pyecharts 安装不上,求大佬指点一下

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看到了,希望阿里云团队能够给出正确、标准的答案~请查看

展开
收起
刘刚_ 2020-05-23 15:54:23 1127 0
1 条回答
写回答
取消 提交回答
  • 坚持这件事孤独又漫长。

    参考这个离线安装下:https://blog.csdn.net/sunjinshengli/article/details/86070701

    2022-11-30 16:18:32
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
From Python Scikit-Learn to Sc 立即下载
Data Pre-Processing in Python: 立即下载
双剑合璧-Python和大数据计算平台的结合 立即下载