重新安装jupyter notebook后 numpy无法使用 DLL load failed while importing _multiarray_umath: 找不到指定的模块

问题:

ImportError Traceback (most recent call last)
D:\Softwares\Anaconda\envs\try\lib\site-packages\numpy\core_ _init__.py in
21 try:
—> 22 from . import multiarray
23 except ImportError as exc:

D:\Softwares\Anaconda\envs\try\lib\site-packages\numpy\core\multiarray.py in
11
—> 12 from . import overrides
13 from . import _multiarray_umath

D:\Softwares\Anaconda\envs\try\lib\site-packages\numpy\core\overrides.py in
6

D:\Softwares\Anaconda\envs\try\lib\site-packages\numpy_ _init__.py in
148 from . import _distributor_init
149
–> 150 from . import core
151 from .core import *
152 from . import compat

D:\Softwares\Anaconda\envs\try\lib\site-packages\numpy\core_ _init__.py in
46 “”” % (sys.version_info[0], sys.version_info[1], sys.executable,
47 version, exc)
—> 48 raise ImportError(msg)
49 finally:
50 for envkey in env_added:

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:\Softwares\Anaconda\envs\try\python.exe”
  • The NumPy version is: “1.21.5”

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: 找不到指定的模块

解决方法

在想用的环境下启动jupyter notebook
不要在其它环境启动再切换内核kernel

Original: https://blog.csdn.net/BILL_Apple/article/details/122937160
Author: Rookie_CS
Title: 重新安装jupyter notebook后 numpy无法使用 DLL load failed while importing _multiarray_umath: 找不到指定的模块

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/759751/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球