logo
Loading...

from PIL import Image出現錯誤 - Cupoy

----> 6 ----> 6 from PIL import ImageD:\anaconda3\...

pycrawler,pycrawler-d33

from PIL import Image出現錯誤

2020/01/09 09:07 AM
Python網路爬蟲論壇
林辰
觀看數:0
回答數:1
收藏數:1
pycrawler
pycrawler-d33

----> 6 ----> 6 from PIL import Image

D:\anaconda3\lib\site-packages\PIL\Image.py in <module>
    42 # PILLOW_VERSION was removed in Pillow 7.0.0.
    43 # Use __version__ instead.
---> 44 from . import ImageMode, TiffTags, UnidentifiedImageError, __version__, _plugins
    45 from ._binary import i8, i32le
    46 from ._util import deferred_error, isPath

ImportError: cannot import name 'UnidentifiedImageError' from 'PIL' (unknown location)


D:\anaconda3\lib\site-packages\PIL\Image.py in 

    42 # PILLOW_VERSION was removed in Pillow 7.0.0.

    43 # Use __version__ instead.

---> 44 from . import ImageMode, TiffTags, UnidentifiedImageError, __version__, _plugins

    45 from ._binary import i8, i32le

    46 from ._util import deferred_error, isPath


ImportError: cannot import name 'UnidentifiedImageError' from 'PIL' (unknown location)