Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Data Science Basics Getting Started with Data Science Installing Libraries

Hassam Uddin
Hassam Uddin
8,204 Points

RuntimeError: module compiled against API version a but this version of numpy is 9

I get the above error when trying to run demo.py, I assume this is because I have the wrong version of numpy installed on workspaces, but I can't find anything to fix that, including answers on StackOverflow.

1 Answer

Hey Hassim so What I did was I just installed python on my local enviorment here are some links to the videos I used.

Heres a link if your running windows https://www.youtube.com/watch?v=vHRRiBHI3to

Heres two links if your running MACOSX

PART1: https://www.youtube.com/watch?v=jmjTAXbH-SA

PART2: https://www.youtube.com/watch?v=UPPLxWurcAc

So your next step would be. To download the project files Mrs.Kat gives you in the video and drag them into your file structure of your Developer enviroment. Hope I helped you out MR.Uddin good luck and push forward.

As far as the compatibility of the packages you download you can just choose the ones you want to install. If you run into errors.

Hassam Uddin
Hassam Uddin
8,204 Points

I already have Python installed on my computer, but I'd like to be able to this on workspaces, if there is no fix, then my computer would be the next option.