Philadelphia Python Workshop 9/Setup/OSX interactive Python
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
- Start up a Terminal command prompt. You can find the Terminal application through Spotlight, or navigate to Applications/Utilities/Terminal.
- To start Python, type
at the command prompt and hit enter. You should see something like
Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:52:43) [GCC 4.2.1 (Apple Inc. build 5666)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>>The
>>>indicates that you are at a Python prompt.
- Exit the Python prompt by typing
exit()and hitting enter. Now you're back at the OS X command prompt (which looks something like
Practice these steps until you feel comfortable navigating to a command prompt, starting Python, and exiting Python.