Python 导入错误:无法导入名称'_成像';从';PIL';。昨天工作顺利吗?

Python 导入错误:无法导入名称'_成像';从';PIL';。昨天工作顺利吗?,python,python-3.x,python-imaging-library,Python,Python 3.x,Python Imaging Library,当我从PIL导入图像运行或从PIL导入图像运行时,我得到错误: ImportError: cannot import name '_imaging' from 'PIL' (C:\Users\Pruthvi\AppData\Local\Programs\Python\Python38-32\Lib\site-packages\PIL\__init__.py) 奇怪的是,昨天我在探索PIL和枕头模块时,同样的命令工作正常。(我不确定这两个模块是如何关联的) 我已尝试卸载并重新安装枕头 针对类似问

当我从PIL导入图像运行
或从PIL导入图像运行
时,我得到错误:

ImportError: cannot import name '_imaging' from 'PIL' (C:\Users\Pruthvi\AppData\Local\Programs\Python\Python38-32\Lib\site-packages\PIL\__init__.py)
奇怪的是,昨天我在探索PIL和枕头模块时,同样的命令工作正常。(我不确定这两个模块是如何关联的)

我已尝试卸载并重新安装枕头

针对类似问题的Reddit/StackOverflow解决方案对我没有帮助


我在windows上运行最新版本的python和pillow

我找到了一个对我有效的简单解决方案

使用pip卸载枕头

pip uninstall Pillow
然后使用easy_install重新安装枕头

easy_install Pillow

我希望这对其他人有帮助。

我找到了一个简单的解决方案,对我很有效

使用pip卸载枕头

pip uninstall Pillow
然后使用easy_install重新安装枕头

easy_install Pillow
我希望这能帮助别人