错误输出(ImportError: DLL load failed: 找不到指定的模块)

解决方法

步骤1:

  • 卸载原始版本库文件,包括Numpy、Scipy、Scikit-learn 。
    打开DOS界面Anaconda Prompt界面执行以下命令:
    pip uninstall numpy
    pip uninstall scipy
    pip uninstall scikit-learn

步骤2:

  • 安装新版本。因为下载whl文件比较慢,可以使用清华大学镜像进行在线下载和安装,安装顺序如下:
    pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple
    pip install scipy -i https://pypi.tuna.tsinghua.edu.cn/simple
    pip install scikit-learn -i https://pypi.tuna.tsinghua.edu.cn/simple

python中导入sklearn库报错解决

步骤3:

安装完成后,程序可以正常执行。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
  • 2022-02-05
  • 2022-12-23
  • 2021-08-15
猜你喜欢
  • 2021-10-14
  • 2021-09-01
  • 2021-10-31
  • 2021-05-13
  • 2021-07-05
  • 2022-12-23
相关资源
相似解决方案