DLL load failed while importing _imaging: 找不到指定的模块的解决方法

问题描述

环境
Windows10,python3.8,pillow8.4.0

  File "H:\spyder\py.py", line 3, in <module>
    from PIL import Image
  File "E:\anaconda3\lib\site-packages\PIL\Image.py", line 114, in <module>
    from . import _imaging as core
ImportError: DLL load failed while importing _imaging: 找不到指定的模块

解决方法

卸载当前版本,安装6.2.1版本

pip uninstall pillow
pip install pillow==6.2.1 -i https://pypi.tuna.tsinghua.edu.cn/simple/

拓展资料

python与pillow的版本关系

猜你喜欢

转载自blog.csdn.net/qq_45510888/article/details/121446878