1

When I try to uprgrade I get this:

Complete output from command python setup.py egg_info: ============================================================================ Edit setup.cfg to change the build options

BUILDING MATPLOTLIB
            matplotlib: yes [1.4.3]
                python: yes [2.6.6 (r266:84292, Nov 21 2013, 10:50:32)  [GCC
                        4.4.7 20120313 (Red Hat 4.4.7-4)]]
              platform: yes [linux2]

REQUIRED DEPENDENCIES AND EXTENSIONS
Requires numpy 1.6 or later to build.  (Found 1.4.1)

But I've already updated numpy to 1.9.2

EDIT: The updated numpy is in /usr/lib/python2.6/site-packages/numpy The old numpy is in /usr/share/doc/numpy-1.4.1

pip show numpy gives me


Metadata-Version: 2.0 Name: numpy Version: 1.9.2 Summary: NumPy: array processing for numbers, strings, records, and objects. Home-page: http://www.numpy.org Author: NumPy Developers Author-email: numpy-discussion@scipy.org License: BSD Location: /usr/lib/python2.6/site-packages Requires: [root@acnlin19 rogers]#

luminous12
  • 153
  • 1
  • 1
  • 8
  • What do you get when you run 'pip list | grep numpy' and 'pip show numpy'? – cameron-f Jun 24 '15 at 19:00
  • Have you tried putting it in a virtualenv? – user3557327 Jun 24 '15 at 19:02
  • @cameron-f I get 1.9.2 – luminous12 Jun 24 '15 at 19:06
  • @luminous12 have you tried uninstalling and reinstall numpy? pip uninstall numpy – cameron-f Jun 24 '15 at 19:32
  • @cameron-f yes. There is an old version of numpy on this computer that it keeps picking up vs the one I installed with pip – luminous12 Jun 24 '15 at 19:35
  • @luminous12 when you do pip show numpy what directory location does it give you? You should be able to pip uninstall until all numpy folders are gone from that directory – cameron-f Jun 24 '15 at 19:42
  • @cameron-f it gives me the location of the updated numpy – luminous12 Jun 24 '15 at 20:02
  • @luminous12 Can you edit your question to show the paths and pip outputs? I'm stumped. You could try virtualenv or [anaconda](http://continuum.io/downloads) as a workaround. I'll have to see what someone else comes up with – cameron-f Jun 24 '15 at 20:08
  • @cameron-f I have updated the question – luminous12 Jun 24 '15 at 20:21
  • @luminous12 after you run 'pip uninstall numpy' and then run 'pip show numpy' does it display anything? Also in /usr/lib/share/doc is there a version.py file? I think /usr/lib/share/doc is just for documentation. A module will need at least an __init__.py – cameron-f Jun 24 '15 at 21:14
  • @cameron-f It does not display anything after I uninstall numpy then do pip show numpy. There also does not appear to be a version.py file in the usr/lib/share/doc – luminous12 Jun 25 '15 at 13:49

2 Answers2

1
pip install -U numpy
pip install matplotlib

These two comadns should sort you. Run as root if you aren't using a virtualenv.

hd1
  • 33,938
  • 5
  • 80
  • 91
0

It is still detecting your old numpy version. I think you need to add path to numpy in PYTHONPATH environment variable

Utsav T
  • 1,515
  • 2
  • 24
  • 42