Revert from Python 2.7 to Python 2.6 in Mac OSX 10.6.8 doesn't work even though I've uninstalled Python 2.7


I have mac OSX 10.6.8. My system came with Python 2.6 I recently installed Python 2.7 but experienced many problems with it so decided to revert back to Python 2.6 by executing

$ sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.7

I also removed Python 2.7 from my Applications folder.

Still, however, when I run

 $ python -V 

 Python 2.7.3 

So I tried to make the default python 2.6 by running the following:

$ defaults write Version 2.6

However, still I see that my python version is 2.7.3

I seem incapable of even temporarily changing my version:


$ python -V
Python 2.7.3

If it helps at all, this is what I get

$ which python

I would really appreciate any help

1 Answer: 

You likely already saw this (search for 'Uninstalling a framework'), but it sounds like a few additional steps you could possibly take would be ensuring that the symlink /Library/Frameworks/Python.framework/Versions/Current points to your installed version of Python 2.6 and that you removed all Python 2.7 symlinks in /usr/local/bin.

I also just came across this post which does a much better job of answering than I just tried to do :)


More Articles

cookies - PHP Unique Computer ID

Is it possible for php(or javascript in the worst case) to create a unique id for a user that is not cookie or ip dependant. I have seen on that on each city the count only goes up once a day(it has a unique id for everyone i think) and even if I delete my cookies and refresh ip it st

c# - Regular expression to match a string that contains only numbers, not letters

My code is currently using the following Regex expression which matches on numbers:Regex numberExpression = new Regex(@"(?<Number>\d+)");This current works fine for input strings like "1", "100", "1a", "a1", etc....But I want to change it so it does NOT match when the input string contains a l

Dose google play count insalls out of itself downloads?

I recently published my app in google play . The question is how google play show counts ?1 - All device that have google play installed and my apps too , total count of my apps install will show in play store .2 - Just all downloads that directly are downloaded from google play will be count .

apache spark - Scala - How to iterate over tuples on RDD?

I have an RDD that contains tuples like this (A, List(2,5,6,7)) (B, List(2,8,9,10))and I would like to get the index of the first element where a specific condition between value and index holds. So far I have tried this on a single tuple test and it works fine:test._2.zipWithIndex.indexWhere

email - PHP mail function not working based on the body of the message

so on my server I tried running:mail('', 'asdf', 'asklfdjksalfdsdaf I know I I know I');and PHP sent the mail perfectly....but then when I changed the message to mail('', 'asdf', 'hahahahaa');it did NOT send the email to me....what can possibly cause this? the only thing that

How do I access my website (IIS) from the internet?

I have installed IIS. I have browsed to my website on IIS using the 'Browse *:80 (http)' link in IIS. This navigates to http://localhost. That link is only going to work on my own machine.I don't care about my IP address changing (I'm going to show my website for a few hours max every now and the

plone - How can I get rid of spam users

The company I work for have a small Plone blog. But we have a problem with spam accounts. We use captcha on the site and Plone sends a mail to the users that they must confirm before they can edit the user profile. Still about 600 spam users are created every day. In the Plone user profile they past

python - sklearn.KNeighborsClassifier gives very low accuracy score

I am new to machine learning.I created a data, random numbers in two sets. I am trying how to find a sample, however when doing following, I receive very low accuracy score:from random import randint as Rfrom matplotlib import pyplot as pltimport numpy as npfrom sklearn.neighbors import KNeighborsCl

Scala Collection in JSF

I have developed a Scala and JSF application for learning purpose. In this app I have to convert all my Scala collection objects to Java cllectios before it get rendered in JSF. Is there any easy way this can be achived with something like ScalaElResolver, if yes anybody have a sample code for Scala

css - How to add equal padding between buttons? want to put equal space between the 4 buttons at the top, but I'm having trouble. At first the "social-buttons" id was in a DIV floating left, but that caused the slider to get pushed to the right.So I changed everything to and now the padding style doesn't seem to have an