已解决ImportError: cannot import name ‘PILLOW_VERSION’

已解决ImportError: cannot import name ‘PILLOW_VERSION‘_新版本


文章目录

  • 报错问题
  • 解决方法
  • 声明


报错问题

之前在工作中遇到过这个坑,记录一下问题以及解决方法,不一定针对所有情况都能用,但是可以供大家参考。
问题描述如下:

ImportError: cannot import name ‘PILLOW_VERSION’

已解决ImportError: cannot import name ‘PILLOW_VERSION‘_python_02

已解决ImportError: cannot import name ‘PILLOW_VERSION‘_python_03

解决方法

已解决ImportError: cannot import name ‘PILLOW_VERSION‘_python_04


版本过高,Pillow的最新版本,没有此函数或方法,降低版本即可!

pip install Pillow==6.2.2 --user

声明

解决方法参考网络,如有侵权联系我删除