
win7 py3
>>> from PIL import Image Traceback (most recent call last): File "<stdin>", line 1, in <module> File "D:\python3\lib\site-packages\PIL\Image.py", line 27, in <module> from . import VERSION, PILLOW_VERSION, _plugins ImportError: cannot import name 'VERSION' >>> import PIL#这个能导入的 >>> dir(PIL) ['__doc__', '__loader__', '__name__', '__package__', '__path__', '__spec__'] 1 mingyun OP 解决了 $ pip install -U pillow Collecting pillow Using cached Pillow-4.3.0-cp35-cp35m-in32.whl Requirement already up-to-date: olefile in d:\python3\lib\site-packages (from pi llow) Installing collected packages: pillow Found existing installation: Pillow 4.2.1 Uninstalling Pillow-4.2.1: Successfully uninstalled Pillow-4.2.1 Successfully installed pillow-4.3.0 |