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

Installing matplotlib and numpy to python3 on mac

I downloaded matplotlib and numpy on my computer, but they seem to be installing to the old version of python (2.7.10) instead of python 3 (which is also installed on my computer). when i check the version of matplotlib and numpy I have matplotlib 1.3.1 and numpy 1.8.0 instead of the newer versions as shown in this video. how do i get the newer versions to install to python 3?

Thanks!

Kathryn

1 Answer

just figured it out. for anyone else having this problem, it should work if you type "pip3 install library_name" (rather than pip install library_name)