我正在运行Windows 10,并安装了Python。当试图运行包含from sklearn.cluster import DBSCAN
行的Python程序时,我会得到以下错误:
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\sklearn\metrics\pairwise.py", line 33, in <module>
from ._pairwise_distances_reduction import PairwiseDistancesArgKmin
ImportError: DLL load failed while importing _pairwise_distances_reduction: The specified module could not be found.
我尝试通过在命令行中输入每个命令行(单独,而不是全部)并检查程序是否工作或运行来解决这一问题:
pip install sklearn
pip install scikit-learn
pip uninstall scipy
然后是pip install scipy
pip uninstall numpy
然后是pip install numpy
在运行程序时,我仍然会遇到相同的错误。我很难解决这个问题,搜索"_pairwise_distances_reduction“不会返回有帮助的结果。有什么我应该安装的东西吗?
发布于 2022-10-26 18:52:44
我也遇到了这个问题,我安装了VisualC++可再发行运行时库,它解决了我的问题。
https://stackoverflow.com/questions/74074392
复制相似问题