sklearn.neural_network 导入 MLPRegressor 时出错
Error from sklearn.neural_network import MLPRegressor
我正在 Python 上构建神经网络代码。当我在笔记本电脑上执行代码时,一切都很顺利。当我将它发送给我的朋友时:它给出了图片中显示的错误。我尝试卸载 python 并重新安装它,卸载 pip,卸载 sklearn,然后安装它们。没有任何效果。
ImportError:DLL load failed.
有人可以帮忙吗?
完整错误如下:
RESTART: C:\D-drive\AUB 2019-2020\Fall\CHEN499\Mohamad Ibrahim9 research\neural networks\example 6\NN1.py
Traceback (most recent call last):
File "C:\D-drive\AUB 2019-2020\Fall\CHEN499\Mohamad Ibrahim9 research\neural networks\example 6\NN1.py", line 1, in <module>
from sklearn.neural_network import MLPRegressor
File "C:\Users\jz08\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sklearn\__init__.py", line 75, in <module>
from .utils._show_versions import show_versions
File "C:\Users\jz08\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sklearn\utils\_show_versions.py", line 12, in <module>
from ._openmp_helpers import _openmp_parallelism_enabled
ImportError: DLL load failed: The specified module could not be found.
谢谢。
我遇到了同样的问题,只是通过返回到以前版本的 scikit-learn (0.20.2) 之一解决了这个问题尝试降级 sklearn。
我知道这是一个次优的解决方案,但希望您能够在当前正在进行的任何项目中取得进展。希望这对您有所帮助!
我正在 Python 上构建神经网络代码。当我在笔记本电脑上执行代码时,一切都很顺利。当我将它发送给我的朋友时:它给出了图片中显示的错误。我尝试卸载 python 并重新安装它,卸载 pip,卸载 sklearn,然后安装它们。没有任何效果。
ImportError:DLL load failed.
有人可以帮忙吗?
完整错误如下:
RESTART: C:\D-drive\AUB 2019-2020\Fall\CHEN499\Mohamad Ibrahim9 research\neural networks\example 6\NN1.py
Traceback (most recent call last):
File "C:\D-drive\AUB 2019-2020\Fall\CHEN499\Mohamad Ibrahim9 research\neural networks\example 6\NN1.py", line 1, in <module>
from sklearn.neural_network import MLPRegressor
File "C:\Users\jz08\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sklearn\__init__.py", line 75, in <module>
from .utils._show_versions import show_versions
File "C:\Users\jz08\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sklearn\utils\_show_versions.py", line 12, in <module>
from ._openmp_helpers import _openmp_parallelism_enabled
ImportError: DLL load failed: The specified module could not be found.
谢谢。
我遇到了同样的问题,只是通过返回到以前版本的 scikit-learn (0.20.2) 之一解决了这个问题尝试降级 sklearn。 我知道这是一个次优的解决方案,但希望您能够在当前正在进行的任何项目中取得进展。希望这对您有所帮助!