--- layout: default title: Installing Python ---

Installing and Configuring Python

Step 1: Download the latest Python 3 installer for your operating system at https://www.python.org/downloads

Once Python is intalled, you need to ensure that you can run it from the command line, that is, that the python3 executable is on your path. If you run Linux, you probably don't need help with this. If you run Mac OS X it just works. If you run Windows, follow these steps:

  1. Go to the control panel, however you do that on your version of Windows.
  2. Go to the place for "advanced system settings." There should be a button labelled "Environment Variables..." -- click on it.
  3. In the Environment Variables dialog find the Path variable under system variables (not user variables). Select it and click the Edit.. button below.
  4. In the Edit dialog box put your cursor at the beginning of the entry (DON'T ERASE ANYTHING!) and type C:\Python34;. The semicolon delimits directory entries in the path. Click OK.
  5. If your OS shell was open, close it and re-open it.
Note: these instructions assume that you accepted the defaults when you installed Python. If you installed Python somethere else, enter that location in place of C:\Python34;.

Checking Your Python Installation

  1. Open a terminal, i.e., operating system (OS) command shell.
  2. At the command prompt type python3 --version. You should get a response like Python 3.4.0. Note: on Windows the Python 3 command is just python (without the 3).

The OS Shell Versus the Python Shell

The prompt for the OS shell typically ends with $ on Unix, usually following the form user@computer-name:pwd $ where pwd means present working directory.

The prompt for the Python shell is >>>, three greater-than symbols.

Additional Libraries