Erros de versão para numpy ao importar o matplotlib
Quando eu
import matplotlib
Eu não tenho erros, mas quando eu
import matplotlib.pyplot
eu recebo
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
Isso parece umerro de versão; masyolk
diz que eu tenho uma versão atualizada epip
diz que tudo está atualizado e não ajudará a "realmente" atualizar as coisas.
O que posso fazer para garantir que os pacotes necessários estejam "realmente" atualizados para evitar esse erro; Quais pacotes precisam ser "realmente" atualizados (matplotlib; numpy; outros?).
Desinstalar e re-instalar numpy (usando pip) não ajuda.
Será que o pip de alguma forma me permitiu atualizar recentemente o matplotlib para uma versão "muito nova", enquanto a versão pip de lapsos numpy?
Minhassys.path
é:
['',
'/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']
e a pilha Scypi está instaladasite-packages
onde é mantido pelo pip. OS X 10.9, Apple Python 2.7.5, todas as versões de pacotes são aquelas encontradas pelo pip no PiPy.