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

Josh Keenan
Josh Keenan
19,652 Points

Change python interpreter in Terminal

Hey guys, my python interpreter in my terminal has defaulted to 3.5.2 but I want to change it to 3.6.2, does anyone have any ideas of how I could do this?

Josh Keenan
Josh Keenan
19,652 Points

To clarify I have both versions installed already and have been using 3.6.2 as my interpreter in Pycharm for a while now, but just realised that in my terminal my version is 3.5.2 still

2 Answers

Michael Hulet
Michael Hulet
47,912 Points

The usual way to do this is to just install the new version of Python on top of the old version. You can download the new version from the official downloads page

Josh Keenan
Josh Keenan
19,652 Points

Thanks, but I already have them both installed, I should have been a bit clearer.

Josh Keenan
Josh Keenan
19,652 Points

I have managed to resolve it but I am not sure how I did it.. I will not complain though!

Josh Keenan
Josh Keenan
19,652 Points

Just realised that the problem lies with the Vagrant VM I am running and that it is running Python 3.5.2 whereas my system runs 3.6.2 and therefore some modules aren't there for the VM Python but are for when I build stuff.