Python on OSX

From OpenHatch wiki
Revision as of 15:51, 4 March 2011 by imported>Jesstess (Created page with '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. <ol> <li>Start up a Terminal. You can …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.