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
3
  • please refer this stackoverflow.com/questions/7818811/… Commented Apr 22, 2017 at 18:19
  • I already did this. Still Same error Commented Apr 22, 2017 at 18:21
  • 1
    Looks like a broken numpy. Looks like you're running on Windows, so try to pip uninstall and install again numpy. Commented Jun 1, 2017 at 20:33

2 Answers 2

1

conda install -c conda-forge numpy

Sign up to request clarification or add additional context in comments.

Comments

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.