19

I'm using homebrew python on Mavericks, trying to build numpy 1.8. Unfortunately, when I try to install numpy, I get the following error: https://gist.github.com/ngoldbaum/8592039

I'm able to build numpy 1.7.2 with pip install numpy==1.7.2, but numpy 1.8 always fails to build with the same traceback.

ngoldbaum
  • 5,430
  • 3
  • 28
  • 35
  • Maybe it's conflict with your system environment. Try to install numpy in the [virtualenv](http://www.virtualenv.org/en/latest/) – waitingkuo Jan 24 '14 at 04:31
  • It seems I'm able to build numpy in a virtualenv. Any idea how I can track down what's causing the conflict in my system environment? – ngoldbaum Jan 24 '14 at 05:00

4 Answers4

37

on Mac:

1.) remove these 2 folders manually:

rm -rf /usr/local/lib/python2.7/site-packages/numpy/
rm -rf /usr/local/lib/python2.7/site-packages/numpy-1.10.4.dist-info/

notice: pip uninstall numpy didn't work for me, I had to remove numpy manually.

2.) re-install numpy: pip install numpy

Brian
  • 30,156
  • 15
  • 86
  • 87
3

This was solved by doing brew uninstall python, deleting the contents of /usr/local/lib/python2.7/site-packages, reinstalling python, and then rebuilding numpy.

ngoldbaum
  • 5,430
  • 3
  • 28
  • 35
  • 5
    A more fine-grained solution is to look for previous numpy installations (e.g. look for 'numpy/__init__.py' or multiarray.*) and remove them. – pv. Jan 24 '14 at 10:50
0

I solved my issue doing this: Python.exe .\lib\site-packages\easy_install.py

0

I solved it by uninstalling numpy and reinstalling numpy using pip -

pip3 uninstall numpy

pip3 install numpy
vikash singh
  • 1,479
  • 1
  • 19
  • 29