from scipy import special, optimize, from ._nnls import nnls ImportError: DLL load failed: 找不到指定的模块。

报错信息

Python调用skimage库时报以下错,检查发现skicit-image库是安装的。
from scipy import special, optimize, from ._nnls import nnls ImportError: DLL load failed: 找不到指定的模块。

解决方案

1、打开Anaconda命令行,分别输入下面四条命令并回车。

conda remove --force numpy
conda remove --force scipy
pip install -U numpy
pip install -U scipy

下面是我的执行过程:
from scipy import special, optimize, from ._nnls import nnls ImportError: DLL load failed: 找不到指定的模块。
from scipy import special, optimize, from ._nnls import nnls ImportError: DLL load failed: 找不到指定的模块。
from scipy import special, optimize, from ._nnls import nnls ImportError: DLL load failed: 找不到指定的模块。
from scipy import special, optimize, from ._nnls import nnls ImportError: DLL load failed: 找不到指定的模块。
2、再次回到Pycharm,等待环境检索更新后,运行程序,成功运行!

上一篇:python 求各种距离公式(numpy矩阵)


下一篇:cannot import name ‘force_text‘ from ‘django.utils.encoding‘ (E:\web\python3.9\lib\site-packages