numpy from . import _mklinit导入错误:DLL加载失败:找不到指定的模块

ttcibm8c  于 2023-03-12  发布在  其他
关注(0)|答案(1)|浏览(255)

我想在pycharm中导入NumPy来练习数组,但是我收到了这个错误消息,我创建的代码是...

from Numpy import

arr = linspace(0, 16, 16)
print(arr)

E:\Anaconda\python.exe "C:/Users/Kenny T Mule Jnr/Desktop/try3.py"
Traceback (most recent call last):
  File "C:/Users/Kenny T Mule Jnr/Desktop/try3.py", line 1, in <module>
    from numpy import *
  File "E:\Anaconda\lib\site-packages\numpy\__init__.py", line 140, in <module>
    from . import _distributor_init
  File "E:\Anaconda\lib\site-packages\numpy\_distributor_init.py", line 34, in <module>
    from . import _mklinit
ImportError: DLL load failed: The specified module could not be found.
h7appiyu

h7appiyu1#

尝试重新安装numpy:

pip uninstall numpy
pip install numpy

它解决了我的情况下同样的问题。

相关问题