python install scikit-image后,报错ImportError: DLL load failed: 找不到指定的模块
生活随笔
收集整理的這篇文章主要介紹了
python install scikit-image后,报错ImportError: DLL load failed: 找不到指定的模块
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
安裝:
通過pip方式成功安裝后,依然報錯如下圖;
pip install scikit-image
報錯如圖:
Traceback (most recent call last):File "pyramid.py", line 6, in <module>from skimage.transform import pyramid_gaussian File "D:\python374\lib\site-packages\skimage\__init__.py", line 127, in <module>from .util.dtype import (img_as_float32,File "D:\python374\lib\site-packages\skimage\util\__init__.py", line 17, in <module>from ._map_array import map_arrayFile "D:\python374\lib\site-packages\skimage\util\_map_array.py", line 2, in <module>from ._remap import _map_array
ImportError: DLL load failed: 找不到指定的模塊。
解決:
大多原因是版本不一致;
numpy、scikit-learn、scipy 、scikit-image 都卸載掉,在通過whl重裝
whl文件可在:https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy自行下載;
安裝的版本分別為:
python 3.7.6
numpy 1.20.0
scipy 1.6.0
scikit-learn 0.24.1
scikit-image 0.17.2 (親測0.18.1會報上述的錯誤)
完美解決;
安裝可參考:https://blog.csdn.net/llkk20082006/article/details/84675279
總結
以上是生活随笔為你收集整理的python install scikit-image后,报错ImportError: DLL load failed: 找不到指定的模块的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 使用Python,OpenCV检测摄像机
- 下一篇: 使用Python和OpenCV对轮廓进行