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
Michael Martorella
453 PointsUninstalling Python 2.X
Hey everyone. I have Python 3.4 installed in my IDE. I would like to have it run as the default version on my Terminal as well. However, when I run Python on my Terminal, I get the following output:
Python 2.7.5 (default, Mar 9 2014, 22:15:05) [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin Type "help", "copyright", "credits" or "license" for more information.
I can't for the life of me locate Python 2.7.5 on my computer to remove it. Has anyone else experienced this before? Is there a way to fix this?
Please excuse my rookie question.
1 Answer
Daniel Santos
34,969 PointsI have experience that when I first started learning Python.
James is correct! Once I totally erase Python 2.x from my Mac and that was painful my friend. XCode didn't even open, so don't delete it!
And it's a rookie question, but don't worry we all have been there :) I had the same problem.
You should run python3, and for pip you must use pip3 if you want to install modules that can be seem by Python 3.x of course.
James White
6,159 PointsJames White
6,159 PointsYou don't want to remove the default installation of Python on your Mac. There are system programs that depend on it.
If you want to run python 3.4 from the terminal you need to type in
python3. Or what I've done is alias the python3 command in my .zshrc file toppp.