I setup my system exactly as described in the tutorial website. But, I still got an import error while running the dataviz code:
>> python graph.py
RuntimeError: module compiled against API version a but this version of numpy is 9
Traceback (most recent call last):
File "graph.py", line 14, in <module>
import matplotlib.pyplot as plt
File "/home/anmol/Envs/DataVizProj/local/lib/python2.7/site-packages/matplotlib/pyplot.py", line 27, in <module>
import matplotlib.colorbar
File "/home/anmol/Envs/DataVizProj/local/lib/python2.7/site-packages/matplotlib/colorbar.py", line 32, in <module>
import matplotlib.artist as martist
File "/home/anmol/Envs/DataVizProj/local/lib/python2.7/site-packages/matplotlib/artist.py", line 12, in <module>
from .transforms import Bbox, IdentityTransform, TransformedBbox, \
File "/home/anmol/Envs/DataVizProj/local/lib/python2.7/site-packages/matplotlib/transforms.py", line 39, in <module>
from matplotlib._path import (affine_transform, count_bboxes_overlapping_bbox,
ImportError: numpy.core.multiarray failed to import
I setup my system exactly as described in the tutorial website. But, I still got an import error while running the dataviz code:
List of packages installed in the virtualenv:
Here is a screenshot showing the error.
This was solved by executing
pip install -U numpy
as suggested by this link.My system specifications: