Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Python location on a mac

  • 01-07-2010 07:13PM
    #1
    Registered Users, Registered Users 2 Posts: 872 ✭✭✭


    Hi,

    I'm getting a bit confused about which version of python is being used.

    If i type 'which python' it says

    /Library/Frameworks/Python.framework/Versions/Current/bin/python

    This seems to be a symlink to version 2.5 (see attachment). How could i update the symlink to point to a new python version ?

    Also, under /Library/Python there seems to be version 2.3. 2.5 and 2.6 there, can i delete all these because python is installed under Frameworks ?

    One more question :D How do i make a permanent update to my python path ?

    Thanks for any help


Comments

  • Registered Users, Registered Users 2 Posts: 7,468 ✭✭✭Evil Phil


    I'm going to move this to the Mac forum, you'll probably get more help there.


  • Registered Users, Registered Users 2 Posts: 7,208 ✭✭✭Talisman


    python --version

    This will tell you what version of Python is being used.

    If you want to change the version of Python install MacPorts.

    Afterwards install Python 2.6:
    sudo port install python26

    This will install Python in a different folder than that provided by the system so it won't be affected by Software Update.

    Install Python Select:
    sudo port install python_select

    Select Python 2.6:
    sudo python_select python26

    This will do the necessary PATH modifications to make MacPorts Python 2.6 your Python installation.


Advertisement