question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No module named 'numpy.core._multiarray_umath'

See original GitHub issue

I just installed TensorFlow, Keras in anaconda3.

C:\conda create --name neuralnets python=3.7
C:\activate neuralnets

(neuralnets) C:\conda install theano
(neuralnets) C:\conda install mingw libpython
(neuralnets) C:\pip install tensorflow
(neuralnets) C:\pip install keras

Reproducing code example:

Executed this command:

(neuralnets) C:\python -c "from keras import backend; print(backend._BACKEND)"

Got the following error:

Traceback (most recent call last):
  File "C:\Users\Z0035HPP\AppData\Roaming\Python\Python37\site-packages\numpy\core\__init__.py", line 16, in <module>
    from . import multiarray
  File "C:\Users\Z0035HPP\AppData\Roaming\Python\Python37\site-packages\numpy\core\multiarray.py", line 12, in <module>
    from . import overrides
  File "C:\Users\Z0035HPP\AppData\Roaming\Python\Python37\site-packages\numpy\core\overrides.py", line 6, in <module>
    from numpy.core._multiarray_umath import (
ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\Z0035HPP\AppData\Local\Continuum\anaconda3\envs\neuralnets\lib\site-packages\keras\__init__.py", line 3, in <module>
    from . import utils
  File "C:\Users\Z0035HPP\AppData\Local\Continuum\anaconda3\envs\neuralnets\lib\site-packages\keras\utils\__init__.py", line 2, in <module>
    from . import np_utils
  File "C:\Users\Z0035HPP\AppData\Local\Continuum\anaconda3\envs\neuralnets\lib\site-packages\keras\utils\np_utils.py", line 6, in <module>
    import numpy as np
  File "C:\Users\Z0035HPP\AppData\Roaming\Python\Python37\site-packages\numpy\__init__.py", line 142, in <module>
    from . import core
  File "C:\Users\Z0035HPP\AppData\Roaming\Python\Python37\site-packages\numpy\core\__init__.py", line 47, in <module>
    raise ImportError(msg)
ImportError:
import numpy as np
<< your code here >>

Error message:

Numpy/Python version information:

Can someone please help? I am new to using keras and tensorflow. I am using it for a class I am taking this semester.

Thanks

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:23 (6 by maintainers)

github_iconTop GitHub Comments

26reactions
rgommerscommented, Feb 22, 2019

pip install tensorflow picked up numpy from PyPI. Try

pip uninstall numpy
conda install numpy

that will probably fix things

13reactions
kobilinuxcommented, Feb 27, 2019

hi! I succeeded in installing tensorflow in python3.7

  • Failed on first install Message: ModuleNotFoundError: No module named ‘numpy.core._multiarray_umath’
  • ModuleNotFoundError:No module named ‘numpy.core._multiarray_umath’

pip uninstall numpy pip install numpy pip uninstall tensorflow pip install tensorflow

import tensorflow as tf success :> thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

No module named 'numpy.core._multiarray_umath' - Stack ...
When importing tensorflow, I get the following error: No module named 'numpy.core._multiarray_umath' · python-3.x · numpy · tensorflow · anaconda.
Read more >
python3.10 with numpy - ModuleNotFoundError: No module ...
_multiarray_umath import ( ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' During handling of the above exception, ...
Read more >
No module named 'numpy.core._multiarray_umath' - Reddit
I want to add python numpy package to lambda. I have downloaded numpy package put inside a folder named as python and zip...
Read more >
Unable to import numpy 1.19.1 in AWS Lambda No ... - YouTube
Pandas : Unable to import numpy 1.19.1 in AWS Lambda No module named ' numpy.core._multiarray_umath ' [ Beautify Your Computer ...
Read more >
No module named 'numpy.core._multiarray_umath - (View topic)
No module named 'numpy.core._multiarray_umath. I specify that I can use the numpy module in the Thonny IDE to run the python macro.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found