0

I have installed pandas, numpy, and matplotlib using pip3. Importing numpy and matplotlib is successful, but importing pandas results in the following error.

RuntimeError: module compiled against API version 0xc but this version of numpy is 0xa
RuntimeError: module compiled against API version 0xc but this version of numpy is 0xa

If I uninstall matplotlib and import only pandas and numpy, they successfully import.

I have installed these packages in python2.7 and they are all able to import.

I am running the most recent version of Raspbian.

1
  • can you pip3 show <module> your modules and their versions? Commented Jun 13, 2018 at 20:34

1 Answer 1

1

I ended up uninstalling matplotlib and pandas using

sudo pip3 uninstall <module>

Then I installed pandas using:

sudo pip3 install -U pandas

and then installed matplotlib again using:

sudo pip3 install matplotlib
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.