2

I applied chi - square test and after running successful few minutes ago now it is showing me the error. The program shows me the error in numpy.

The error I observed is:

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'

The code I performed:

import numpy
James Z
  • 12,209
  • 10
  • 24
  • 44
Foram Kalyani
  • 149
  • 1
  • 4
  • 11

2 Answers2

1

conda install -c conda-forge numpy

bruce
  • 1,286
  • 11
  • 14
0

Try to download the numpy package from here:

http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy

I was running to a similar problem while implementing some stuff related to empirical distributions.

Remember, you'll have to download the wheel and install it with pip install numpy_*****.whl, it might also be the case with scipy if you're using it. I hope it solves your problem.

silgon
  • 6,890
  • 7
  • 46
  • 67