jupyter notebook导入numpy 失败 报错:Original error was: DLL load failed while importing _multiarray_umath:

jupyter notebook导入numpy 失败 报错:Original error was: DLL load failed while importing _multiarray_umath: 找不到指定的模块。

import numpy as np 报错
jupyter notebook导入numpy 失败 报错:Original error was: DLL load failed while importing _multiarray_umath:_第1张图片
ImportError:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.

We have compiled some common reasons and troubleshooting tips at:

https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

  • The Python version is: Python3.8 from “D:\program\Anaconda3\python.exe”
  • The NumPy version is: “1.20.1”

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: DLL load failed while importing _multiarray_umath: 找不到指定的模块。

尝试解决

在Anaconda Prompt 中卸载、重新安装
1.卸载
使用管理员打开Anaconda Prompt

pip uninstall numpy

2.重新安装。

pip install numpy

初次安装的numpy版本为1.20.1
重新安装后版本为1.21.0
jupyter notebook导入numpy 失败 报错:Original error was: DLL load failed while importing _multiarray_umath:_第2张图片
重启jupyter notebook
问题解决。

你可能感兴趣的:(numpy,python,anaconda)