Python on OSX

Revision as of 14:37, 9 May 2011 by imported>Paulproteus

OS X ships with Python installed, so the goal of this page is to make sure you can start a Terminal and run Python from the command line.

  1. Start up a Terminal. You can find the Terminal application through Spotlight, or navigate to Applications/Utilities/Terminal
  2. Test your Python install at the command prompt. Type python and hit enter. You should see something like
    Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29) 
    [GCC 4.2.1 (Apple Inc. build 5646)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>>
    
  3. To exit the Python prompt, type exit() and press Enter. This will take you back to the Terminal command prompt.

Success!

« Back to the Friday setup page