
Concepts: Installing Python
A quick-start guide to getting Python up-and-running on your machine.
Getting Python Set-up on your Computer
In order to get started with Python, the first step is to install it on your computer. While many computers come with some version of Python pre-installed, the rest of these topics will assume the latest version of Python is being used.
Downloading and Installing Python on Windows
The Windows version of Python can be downloaded and installed using a self-install program available on the Python website:
- Open the Python Downloads page: https://www.python.org/downloads/
- Download the installer for the latest version of Python.
- When it's finished downloading, open the Python setup program.
- Click "Install Now".
- If Windows shows a warning dialog, click "Yes" to allow the setup program to make changes to your computer.
- Wait for the installation to complete.
- Click "Close" when the installation completes.
Downloading and Installing Python on MacOS
The Mac version of Python can be downloaded and installed using a self-install program available on the Python website:
- Open the Python Downloads page: https://www.python.org/downloads/
- Download the installer for the latest version of Python.
- When the download is complete, click on the downloaded
.pkgfile to open the installer. - Click
continueto start the install process. Make sure to accept the license and go through the multiple steps using the default options. - When installation is complete, click close to close the installer.
Tip: Deleting the installer is fine after install is complete.
Downloading and Installing Python on Linux
Directions for downloading and installing Python on Linux: https://www.python.org/downloads/
Opening Python
Now that you have Python installed, it's important to know how to open it so you can practice with it.
Opening Python on Windows
The Windows version of Python can be opened directly via the installed Python program:
- Open the Windows Search from the taskbar.
- Search for "Python 3." in the search bar. You should see a Python app pop up with the same version as the one you installed earlier.
- Right-click it and pin it to your taskbar or start menu so you can easily find it later.
- Click on the app to open it.
- You should see a Python command line window open up.
Opening Python on MacOS
The Mac version of Python can be used in the IDLE application.
- When you installed Python above, part of the installation is the
IDE(Integrated Development Environment) namedIDLEwhich is the program you will use to run your python code. - To open
IDLEyou will need to go to yourApplicationsFolder on your computer and open thePython 3.xfolder and double click on theIDLEapplication. IDLEshould now be open and ready for use.Tip: It is recommended to add a shortcut toIDLEon your Desktop or to the MacDockto make opening it quick and easy.
Opening Python on Linux
Directions for opening Python on Linux
Before moving on, it's highly suggested you bookmark this page in case you need a refresher on how to start Python later.