Numpy版本问题错误解决方法【DLL load failed while importing _multiarray_umath】

Numpy版本问题

    • 问题描述
    • 解决方法
      • 更新Numpy包

问题描述

最近什么都没动,突然运行不了了,故障如下。查了下应该是版本的问题。保姆级解决方案来啦~~

ImportError: Unable to import required dependencies:
numpy: 

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 files (x86)\python38-32\python.exe"
  * The NumPy version is: "1.19.2"

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: 拒绝访问。

解决方法

更新Numpy包

方式如下图所示。打开命令行窗口,输入:

pip install --upgrade numpy --user

注意哦! 一定要加 --user,否则会报错。大功告成~~~
Numpy版本问题错误解决方法【DLL load failed while importing _multiarray_umath】_第1张图片

你可能感兴趣的:(python小白)