【发布时间】:2012-06-21 02:16:56
【问题描述】:
当我尝试像这样导入 reportlab.graphics.shapes 时,我的 Python 无法识别子模块:
>>> from reportlab.graphics.shapes import Drawing
Traceback (most recent call last):
File "<pyshell#14>", line 1, in <module>
from reportlab.graphics.shapes import Drawing
ImportError: No module named shapes
我已将reportlab 包复制到/site-packages,并且可以成功导入module reportlab.graphics。
我的 Python 版本是 2.7.3。
谁能帮我解决这个问题?
【问题讨论】:
-
如果它解决了你的问题,你能接受吗?
标签: python importerror