Thursday, September 23, 2010

Upgrading to python 2.7 on Snowleopard

Well im finally back after a string a events going on in my life. This is a quick tutorial on how to upgrade python on OS X 10 in this case snow leopard but will work with other versions of OS X 10 so enough talking lets get to it.


Step1. Install the version of python that you are going to use for example im going to be using python 2.7 so i did the following:

sudo port install python27


Step2. Once your version of python is installed its not to point to that version by doing the following steps:

1. cd /usr/bin
2. sudo rm python
3. sudo ln -s /opt/local/bin/python2.7 python
4. python -V (Tells you the version of python you are using which in this case im using python 2.7 )


Step3. Enjoy your new version of python :) happy hacking :D

4 comments:

  1. Are you able to use IDLE after the update?? I keep getting the following error: "IDLE can't import Tkinter. Your Python may not be configured for Tk." Seems like a problem only affecting those of us on Snow Leopard.

    ReplyDelete
  2. You should either remove this hack or put a BIG disclaimer saying: "this hack will completely mess up Python on Snow Leopard!!!"
    Not only did IDLE stop working after I followed your instructions, but now I'm finding out that apps such as Houdini which use python scripts for the postinstall process are also broken.

    Thanks a bunch!

    ReplyDelete
  3. hey dude this does not mess up python ive done this hack time after time on different machines. i think that its something you are doing wrong.

    ReplyDelete
  4. Fuggsticks, feel like removing my eyeball and licking it and putting it back rather than going through docs to help me roll back...

    Pl. help, I see the devil logo and all, good one, now can you pl. help!

    I keep getting "segmentation fault" when trying to use git! All else works fine i.e. for example PlexConnect.

    Something is amiss in the code man, could you pl. have a look, im loosing hair over here...

    ReplyDelete

Cracking Kerberos Service Tickets (TGS) Using Kerberoasting

As of late I've been spending a lot of time researching and learning different techniques when it comes to attacking Active Directory En...