Versionsfehler für numpy beim Import von matplotlib

Wenn ich

import matplotlib

Ich bekomme keine Fehler, aber wenn ich

import matplotlib.pyplot

Ich bekomme

RuntimeError: module compiled against API version 8 but this version of numpy is 7
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Python/2.7/site-packages/matplotlib/pyplot.py", line 24, in <module>
    import matplotlib.colorbar
  File "/Library/Python/2.7/site-packages/matplotlib/colorbar.py", line 27, in <module>
    import matplotlib.artist as martist
  File "/Library/Python/2.7/site-packages/matplotlib/artist.py", line 8, in <module>
    from transforms import Bbox, IdentityTransform, TransformedBbox, \
  File "/Library/Python/2.7/site-packages/matplotlib/transforms.py", line 35, in <module>
    from matplotlib._path import (affine_transform, count_bboxes_overlapping_bbox,
ImportError: numpy.core.multiarray failed to import

Das sieht aus wie einVersionsfehler; aberyolk sagt, ich habe eine aktuelle Version undpip sagt, dass alles auf dem neuesten Stand ist und nicht dazu beiträgt, die Dinge "wirklich" zu aktualisieren.

Was kann ich tun, um sicherzustellen, dass die erforderlichen Pakete "wirklich" aktuell sind, um diesen Fehler zu vermeiden? Welche Pakete müssen "wirklich" aktualisiert werden (matplotlib; numpy; andere?).

Das Deinstallieren und Neuinstallieren von numpy (mithilfe von pip) hilft nicht.

Hat Pip mich kürzlich irgendwie dazu gebracht, matplotlib auf eine "zu neue" Version zu aktualisieren, während ich die Pip-Version von Numpy Lags verwendete?

Meinesys.path ist:

['',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', 
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',  
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',  
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',  
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',  
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python',  
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',  
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old',  
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload',  
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC', 
'/Library/Python/2.7/site-packages']

und der Scypi-Stack ist installiert insite-packages wo es von pip gepflegt wird. OS X 10.9, Apple Python 2.7.5, alle Paketversionen sind die von pip in PiPy gefundenen.

Antworten auf die Frage(5)

Ihre Antwort auf die Frage