ImportError: DLL load failed while importing _imaging: 找不到指定的模块。 - 详解

报错信息:

ImportError: DLL load failed while importing _imaging: 找不到指定的模块。

ModuleNotFoundError: No module named 'PIL'

UserWarning: The NumPy module was reloaded (imported a second time). This can in some cases result in small but subtle issues and is discouraged.

import numpy as np

ImportError: DLL load failed while importing _imaging: 找不到指定的模块。_NumPy

解决方案:

先卸载pillow,再重新安装即可,重新打开pycharm,

不行,那么可以安装指定版本。先卸载,再继续安装以下指定的库就是假设还

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

不行,那么可以安装指定版本。先卸载,再继续安装以下指定的库就是假设还

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

posted @ 2025-10-22 19:31  yjbjingcha  阅读(2)  评论(0)    收藏  举报