我尝试运行的单行如下:
from PIL import Image
Run Code Online (Sandbox Code Playgroud)
无论看起来多么简单,它都会出错:
Traceback (most recent call last):
File "C:\...\2014-10-22_12-49.py", line 1, in <module>
from PIL import Image
File "C:\pyzo2014a\lib\site-packages\PIL\Image.py", line 29, in <module>
from PIL import VERSION, PILLOW_VERSION, _plugins
ImportError: cannot import name 'VERSION'
Run Code Online (Sandbox Code Playgroud)
如果这是有帮助的,我安装了枕头https://pypi.python.org/pypi/Pillow/2.6.1(文件Pillow-2.6.1.win-amd64-py3.4.exe运行此之前)(在此之前,已经有索姆PIL安装,这是我卸载).该脚本使用Python 3.4.1版在Pyzo中运行.
出了什么问题,我该怎么导入Image?
python python-import importerror python-imaging-library pillow