我真的很想使用他们的python testbed库为Google App Engine编写测试,但每次我都尝试使用
from google.appengine.ext import testbed我得到以下错误:
File "/Users/lhundeboel/Projects/busybeeapp/tests/test_something.py", line 1, in <module>
from google.appengine.ext import testbed
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/testbed/__init__.py", line 116, in <module>
from google.appengine.api.images import images_stub
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/images/images_stub.py", line 37, in <module>
import _imaging
ImportError: No module named _imaging有谁知道_imaging模块是什么,以及如何导入它吗?我必须承认,我是Python的新手,所以这可能是我错过的一些基础知识。
发布于 2011-04-17 13:53:21
它是PIL中基于C的部分。正确安装PIL。
https://stackoverflow.com/questions/5691776
复制相似问题