Forums

Numpy import Error when running flask app

I'm getting the following error importing numpy on my flask app:

Error running WSGI application
ImportError: Unable to import required dependencies:
numpy: 
....
Original error was: No module named 'numpy.core._multiarray_umath'

I've tried using an older version of numpy (1.16.0) to see if it will work... no luck. Any suggestions??

Reverting to Python version 3.6 seems to have fixed the problem.

That's odd. Are you using a virtualenv? If so, did you create a completely new one for each of the Python versions you tried?

I am using a virtualenv. I did not create one for each version I tried. I just saw on a forum somewhere that older versions of python don't have this issue on the server... So I changed the version.

Ok. That's interesting. Thanks for the info.