我找了一点,但找不到一个图图来使用PIL和PyPy。根据PyPy的博客,PIL是受支持的。
我该怎么做?
编辑: 我在Windows7x64(Python2.7.132bits)上运行这个
以下是回溯(pypy 1.4.1 windows二进制文件):
Traceback (most recent call last):
File "app_main.py", line 53, in run_toplevel
File "tools\python\gen_images.py", line 52, in <module>
main()
File "tools\python\gen_images.py", line 44, in main
image = Image.open(file)
File "d:\pypy\site-packages\PIL\Image.py", line 1965, in open
return factory(fp, filename)
File "d:\pypy\site-packages\PIL\ImageFile.py", line 91, in __init__
self._open()
File "d:\pypy\site-packages\PIL\GifImagePlugin.py", line 97, in _open
self.seek(0) # get ready to read first frame
File "d:\pypy\site-packages\PIL\GifImagePlugin.py", line 152, in seek
self.dispose = Image.core.fill("P", self.size,
File "d:\pypy\site-packages\PIL\Image.py", line 37, in __getattr__
raise ImportError("The _imaging C module is not installed")
ImportError: The _imaging C module is not installed
我做到了:
工作起来很有魅力。你也要这么做。:)
我没有简单的安装或pip安装,所以按照pip's documentation中的说明操作:
相关问题 更多 >
编程相关推荐