gpt4 book ai didi

Python - 找不到 Numpy 模块

转载 作者:太空宇宙 更新时间:2023-11-04 05:09:00 24 4
gpt4 key购买 nike

我应用了卡方检验,在几分钟前成功运行后现在显示错误。该程序向我显示了 numpy 中的错误。

我观察到的错误是:

Traceback (most recent call last):
File "G:\Setups\Python\chi-1.py", line 4, in <module>
from numpy._distributor_init import NUMPY_MKL
File "G:\Setups\Python\lib\site-packages\numpy\__init__.py", line 142, in <module>
from . import add_newdocs
File "G:\Setups\Python\lib\site-packages\numpy\add_newdocs.py", line 13, in <module>
from numpy.lib import add_newdoc
File "G:\Setups\Python\lib\site-packages\numpy\lib\__init__.py", line 8, in <module>
from .type_check import *
File "G:\Setups\Python\lib\site-packages\numpy\lib\type_check.py", line 11, in <module>
import numpy.core.numeric as _nx
File "G:\Setups\Python\lib\site-packages\numpy\core\numeric.py", line 30, in <module>
from ._internal import TooHardError
ModuleNotFoundError: No module named 'numpy.core._internal'

我执行的代码:

import numpy

最佳答案

conda install -c conda-forge numpy

关于Python - 找不到 Numpy 模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43562804/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com