I installed Python 3 to learn Python and quickly realized that django isn't compatible with Python 3.

How do I uninstall Python 3 on my Mac so that I can install a different version?

link|improve this question
If you are using ActivePython, type sudo pythonselect 2.7 to switch between Python versions. – Sridhar Ratnakumar May 1 '11 at 20:20
feedback

migrated from stackoverflow.com Apr 29 '11 at 4:11

This question came from our site for professional and enthusiast programmers.

3 Answers

See this answer and substitute 3.2 for 2.7.

link|improve this answer
feedback

This is not a programming question. You uninstall it just as you uninstall any other software on a mac! You have a couple of options

  1. Goto Finder>Applications>Python 3.0 (or whatever the folder is named). Right click, select Move to Trash, empty trash.
  2. Open Terminal, type sudo rm -rf /Applications/Python\ 3.0/, enter password and you're done.

Different versions of python go in different folders. So, you can install a new version and leave v3.0 as it is. Just remember to add the new python dir to your path and remove the old one or set an alias for python to python2.x

Next time, remember that such questions are better asked on http://apple.stackexchange.com/

link|improve this answer
Thanks a lot! I will remember to use apple.stackexchange.com for mac question. – Solomon85 Apr 28 '11 at 23:21
Actually, that does not remove a framework install of Python. It only removes a few auxiliary files. – Ned Deily Apr 28 '11 at 23:43
feedback

How did you install it? If you used an installer, then follow yoda's wise advice. Open a terminal and remove the directory /System/Library/Frameworks/Python.framework/Versions/3.0 if it exists. You should also make sure that the symlink /System/Library/Frameworks/Python.version/Versions/Current does not point to 3.0. If it does, then reset it to point to 2.6 or something appropriate.

link|improve this answer
1  
In general, you should never remove anything in /System/Library! The files installed there are controlled by Apple as part of OS X. You could seriously damage your system by deleting the wrong file. Fortunately, there is no such file to delete since Python 3 has not yet been shipped by Apple in an OS X release. User installs of Python 3 are installed elsewhere. For example, the python.org installers install to /Library/Frameworks. – Ned Deily Apr 28 '11 at 23:46
feedback

Your Answer

 
or
required, but never shown