Errors related to Python packages, installation, etc.

1. RuntimeError: module compiled against API version a but this version of numpy is 9
check numpy path and version

import numpy
print numpy.__path__
print numpy.__version__

In my case I have multiple numpy installed in /usr/lib/python2.7/dist-packages/numpy (version 1.8.2) and in /usr/local/lib/python2.7/dist-packages/numpy (version 1.10.4). By default, the system import the numpy from /usr/lib/python2.7. I just simply remove it through command apt-get

sudo apt-get remove python-numpy

Then import numpy, to check the path and version again.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s