简体   繁体   English

Skilearn导入错误:DLL加载失败:找不到指定的模块

[英]Skilearn ImportError: DLL load failed: The specified module could not be found

I am attempting to verify version of my Sklearn to verify the proper installation, earlier I was having an issue where I had to change my registry value of Computer\\HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\FileSystem@LongPathEnabled value to 1 .我正在尝试验证我的 Sklearn 的版本以验证正确的安装,之前我遇到了一个问题,我必须将Computer\\HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\FileSystem@LongPathEnabled注册表值更改为1 Then I was able to install the files how ever, now when I attempt to check the version of my skilearn I get the following:然后我能够安装文件,现在当我尝试检查我的skilearn版本时,我得到以下信息:

Traceback (most recent call last): File "C:/Users/terry/pyversions.py", line 11, in <module> import sklearn File "C:\\Users\\terry\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37\\site-packages\\sklearn\\__init__.py", line 74, in <module> from .base import clone File "C:\\Users\\terry\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37\\site-packages\\sklearn\\base.py", line 20, in <module> from .utils import _IS_32BIT File "C:\\Users\\terry\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37\\site-packages\\sklearn\\utils\\__init__.py", line 25, in <module> from .fixes import np_version File "C:\\Users\\terry\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37\\site-packages\\sklearn\\utils\\fixes.py", line 18, in <module> import scipy.stats File "C:\\Users\\terry\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37\\site-packages\\scipy\\stats\\__init__.py", line 384, in <module> from .stats import * File "C:\\Users\\terry\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37\\site-packages\\scipy\\stats\\stats.py", line 179, in <module> from scipy.spatial.distance import cdist File "C:\\Users\\terry\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37\\site-packages\\scipy\\spatial\\__init__.py", line 102, in <module> from ._procrustes import procrustes File "C:\\Users\\terry\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37\\site-packages\\scipy\\spatial\\_procrustes.py", line 11, in <module> from scipy.linalg import orthogonal_procrustes File "C:\\Users\\terry\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37\\site-packages\\scipy\\linalg\\__init__.py", line 195, in <module> from .misc import * File "C:\\Users\\terry\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37\\site-packages\\scipy\\linalg\\misc.py", line 5, in <module> from .blas import get_blas_funcs File "C:\\Users\\terry\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37\\site-packages\\scipy\\linalg\\blas.py", line 215, in <module> from scipy.linalg import _fblas ImportError: DLL load failed: The specified module could not be found.

My versions are as follows: Python: 3.7.6 (tags/v3.7.6:43364a7ae0, Dec 19 2019, 01:54:44) [MSC v.1916 64 bit (AMD64)] scipy: 1.4.1 numpy: 1.18.0 matplotlib: 3.1.2 pandas: 0.25.3我的版本如下:Python: 3.7.6 (tags/v3.7.6:43364a7ae0, Dec 19 2019, 01:54:44) [MSC v.1916 64 bit (AMD64)] scipy: 1.4.1 numpy: 1.18. 0 matplotlib:3.1.2 熊猫:0.25.3

Please what do I need to do to fix my errors?请问我需要做什么来修复我的错误?

我留下这个来帮助其他人,我找到了解决方案,不得不完全卸载,重新安装并更改 reg 文件以允许长路径下载可能在开始时发挥了作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Python:ImportError:DLL加载失败:找不到指定的模块 - Python: ImportError: DLL load failed: The specified module could not be found ImportError:DLL加载失败:找不到指定的模块 - ImportError: DLL load failed: The specified module could not be found cv2 ImportError:DLL加载失败:找不到指定的模块 - cv2 ImportError: DLL load failed: The specified module could not be found 导入错误:DLL 加载失败:找不到 numpy 的指定模块 - ImportError: DLL load failed: The specified module could not be found for numpy Python 2.7:ImportError:DLL加载失败:找不到指定的模块 - Python 2.7: ImportError: DLL load failed: The specified module could not be found MeCab:“ ImportError:DLL加载失败:找不到指定的模块。” - MeCab: “ImportError: DLL load failed: The specified module could not be found.” 导入错误:DLL 加载失败:找不到指定的模块 - ImportError: DLL load failed: The specified module could not be found 导入错误:DLL 加载失败:找不到指定的模块 - PyCharm - ImportError: DLL load failed: The specified module could not be found - PyCharm Tensorflow:ImportError:DLL 加载失败:找不到指定的模块 - Tensorflow: ImportError: DLL load failed: The specified module could not be found NLTK ImportError:DLL 加载失败:找不到指定的模块 - NLTK ImportError: DLL load failed: The specified module could not be found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM