Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pip doesn’t know where numpy is installed

Trying to uninstall numpy. I tried pip uninstall numpy. It tells me that it isn't installed. However, numpy is still installed at /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy.

How can I make sure pip finds the numpy package?

like image 657
lars Avatar asked Feb 13 '23 08:02

lars


1 Answers

Make sure your pip is the right one for your NumPy install. Check the pip and python locations with:

$ which pip
$ which python

… these should echo /usr/bin/pip and /usr/bin/python, respectively (since you are evidently on a Mac). Next, check which NumPy your python interpreter is using:

$ python -c 'import numpy; print numpy.__file__'

… this should print the library path about which you’re asking (e.g. /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/__init__.pyc).

like image 148
fish2000 Avatar answered Feb 16 '23 01:02

fish2000