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並執行我上面成功發佈的代碼。任何人都可以啓發我,我做錯了什麼?謝謝!