#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    2
    Rep Power
    0

    Installing Python 3.3 on OS X


    So I'm trying to upgrade OS X Mountain Lion's version of Python (2.7) to 3.3 I've installed Tcl/TK and run the Python 3.3 installer.

    The installer puts a program called Python Launcher.

    When I type in "Python" at the terminal shell prompt I'm still getting Python 2.7.

    I'm able to open scripts with the Python Launcher app from the 3.3 install, but I'm unable to get to a command prompt for Python 3.3.

    My apologies for being such a n00b. I'm just not sure how to use 3.3 in OS X at this point, and how to access it from the BASH shell.

    Update: Ok, I guess I just type "Python3.3" to invoke it. Sorry about the lame question, but maybe someone else will see this post in the future.
  2. #2
  3. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,709
    Rep Power
    480
    Glad you solved it.

    You *should* have command completion. Type
    python
    then hit the tab key.
    [code]Code tags[/code] are essential for python code and Makefiles!
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    2
    Rep Power
    0
    Thank you for the suggestion. Command completion gives me a lot of options, including "Python3" which is a bit simpler.

    python python2.7 python3.3-32 pythonw2.6
    python-config python2.7-config python3.3-config pythonw2.7
    python2.5 python3 python3.3m pythonw3
    python2.5-config python3-32 python3.3m-config pythonw3-32
    python2.6 python3-config pythonw pythonw3.3
    python2.6-config python3.3 pythonw2.5 pythonw3.3-32

IMN logo majestic logo threadwatch logo seochat tools logo