Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Importing the multiarray numpy extension module failed (Just with Anaconda)

I'm quite new to Python/Anaconda, and I'm facing an issue that I couldn't solve on my own or googling. When I'm running Python on cmd I can import and use numpy. Working fine.

When I'm running scripts on Spyder, or just trying to import numpy on Anaconda Prompt this error message appears:

ImportError: Importing the multiarray numpy extension module failed. Most likely you are trying to import a failed build of numpy. If you're working with a numpy git repo, try git clean -xdf (removes all files not under version control). Otherwise reinstall numpy.

Original error was: cannot import name 'multiarray'

I don't know if there are relations to it, but I cannot update conda, as well. When I try to update I receive Permission Errors.

Any ideas?

like image 676
Rafael Andrade Avatar asked Mar 09 '18 18:03

Rafael Andrade


1 Answers

The following solved this issue for me:

pip install --upgrade --force-reinstall numpy
like image 196
Hagbard Avatar answered Oct 05 '22 09:10

Hagbard