0
我在Windows 7计算机上安装了Python影像库(PIL)1.1.7版。我已经配置Netbeans使用Python(而不是Jython)。我添加到C的引用:\ Python26 \ LIB \站点包\ PIL的项目,但当我尝试此代码:我如何在Netbeans 6.8(Python版本2.6.5)中使用PIL
import Image, ImageDraw
img = Image.new("RGB", (100,150),(255,255,255))
我收到以下错误:
ImportError: The _imaging C module is not installed
的_imaging。 pyd文件存在并位于正确的目录中。此外,Python(从命令行)可以加载PIL和Image并执行我上面成功发布的代码。任何人都可以启发我,我做错了什么?谢谢!