Added support for ImageGrab.grab to OS X #1367 Merged Member radarhere commented Aug 1, 2015 I think others were simply commenting on the block of code that is known as ImageGrab, rather than the functionality of it. I've created a PR to add the grab method of ImageGrab to OS X, ...
ImportError: cannot import name 'Request' from 'urllib2' (unknown location) - Python 代码示例 ImportError: cannot import name 'ImageGrab' from 'PIL' (D:\Users\ramaruth\Anaconda3\lib\site-packages\PIL\__init__.py) - 无论代码示例
6.检查是否需要重新安装Python 如果仍然无法解决问题,请尝试重新安装Python,然后重新安装Pillow。 结论 以上是解决“ImportError: cannot import name '_imaging' from 'PIL'”错误的一些方法。 如果遇到任何问题,请尝试以上提到的解决方案,并在终端窗口中查看错误消息以获取更多信息。
copying PIL/ImageGrab.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/WebPImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/FliImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/TiffTags.py -> build/lib.macosx-10.9-x86_64-3.7/PIL ...
copying src/PIL/ImageMode.py -> build/lib.linux-x86_64-3.6/PIL copying src/PIL/XVThumbImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL copying src/PIL/ImageGrab.py -> build/lib.linux-x86_64-3.6/PIL copying src/PIL/GribStubImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL ...
copying PIL/ImageGrab.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/WebPImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/FliImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/TiffTags.py -> build/lib.macosx-10.9-x86_64-3.7/PIL ...