无法找到Python PIL库.Google App Engine [英] Unable to find the Python PIL library.Google App Engine
问题描述
想要进入镜像,并进行本地测试。安装PIL
安装Python,然后运行PIL install,这次工作。
事情看起来很不错,但是试图对本地图像进行操作
给出:
NotImplementedError:无法找到Python PIL库,请
查看SDK文档以获取有关在系统上安装PIL的详细信息。
系统:winxp
你如何试图访问PIL ?您是否尝试直接使用google.appengine.api.images模块或PIL?这听起来像是前者,但目前还不清楚。
您是否按照 App Engine说明?
邮编,如果可以的话。
也许最重要的是尝试:查看是否可以从非App Engine脚本使用PIL。只需编写一个快速的Python脚本来访问它,并看看它是如何发生的。例如:
import Image
im = Image.open('filename.png')
im .show()
如果这不起作用,Google App Engine不会与PIL合作。
Installed the Google App Engine SDK.Python 2.6 perfect. Wanted to go into images, and test locally.Installed PIL
Installed Python, then ran the PIL install, worked this time.
Things seemed good, but trying to do localhost image manipulation gives:
"NotImplementedError: Unable to find the Python PIL library. Please
view the SDK documentation for details about installing PIL on your system."
System : winxp
We're probably going to need more information, so here are some questions and things to try.
How are you trying to access the PIL? Are you trying to use the google.appengine.api.images module, or PIL directly? It sounds like the former, but it's not clear.
Did you follow the App Engine instructions?
Post code, if you can.
Perhaps the most important thing to try: see if you can use PIL from a non-App Engine script. Just write a quick Python script that accesses it and see how that goes. Something like:
import Image
im = Image.open('filename.png')
im.show()
If that doesn't work, it's not surprising that Google App Engine wouldn't work with PIL.
这篇关于无法找到Python PIL库.Google App Engine的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!