奇妙な問題に直面しています。import pygal が成功しました。しかし、それを使用することはできません。以下はUbuntuです。私のMacでも同じことが機能します。
ご協力いただきありがとうございます !
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'
>>>