欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

解决:ImportError: DLL load failed: 找不到指定的模块

程序员文章站 2022-03-20 13:13:44
...

import skimage时正常
from skimage import io时报错

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\wzlab\Anaconda3\lib\site-packages\skimage\io\__init__.py", line 7, in <module>
    from .manage_plugins import *
  File "C:\Users\wzlab\Anaconda3\lib\site-packages\skimage\io\manage_plugins.py", line 28, in <module>
    from .collection import imread_collection_wrapper
  File "C:\Users\wzlab\Anaconda3\lib\site-packages\skimage\io\collection.py", line 12, in <module>
    from PIL import Image
  File "C:\Users\wzlab\Anaconda3\lib\site-packages\PIL\Image.py", line 56, in <module>
    from . import _imaging as core
ImportError: DLL load failed: 找不到指定的模块。

解决方法

分析报错后发现from PIL import Image时出现问题,pip install pillow,更新pillow库即可