首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Pygal型导入失败

Pygal型导入失败
EN

Stack Overflow用户
提问于 2016-02-16 08:09:50
回答 1查看 687关注 0票数 1

面对一个奇怪的问题。导入pygal成功。但不能使用它。下面是一个Ubuntu。同样的事情也适用于我的mac电脑。

感谢您的帮助!

代码语言:javascript
复制
Python 2.7.6 (default, Jun 22 2015, 18:00:18)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygal
>>>
>>> pygal.Line()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'Line'
>>> pygal.Line
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'Line'
>>> pygal.Bar()`enter code here`
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'Bar'
>>>
EN

回答 1

Stack Overflow用户

发布于 2018-06-19 10:59:59

您的路径中有一个名为'pygal.py‘的文件。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35421444

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档