Install Python

Please follow the Python installation instructions for the operating system of your choice.

Windows

Please visit the official Python downloads page and click the yellow “Download Python 3.11.4” button.

That button will download an installer. Run the installer, and follow the instructions to install Python.

To verify that Python installed correctly, open up your command prompt (Start -> Run -> cmd) and run:

> py --version
Python 3.11.4

If this gives an error, then you might be able to run Python and get the version by typing python --version. If you have multiple versions of Python installed on your computer, you may need to specify the version we just installed to get the correct one running, if the command above give a version of 2.7.x:

> py -3 --version
Python 3.11.4

Note

See the Windows Getting Started documentation for more information if you have any questions.

Be sure to note which command above gave you the correct version of Python! This is what you should type whenever you want to run Python. Our examples show python everywhere. If python does not give you the correct version of Python, you will need to do the mental translation to the command that works for you.

Mac

Please visit the official Python downloads page and click the yellow “Download Python 3.11.4” button.

That button will download an installer. Open the installer to run it and install Python.

Verify that Python was installed correctly by opening the Terminal application and running:

$ python3 --version
Python 3.11.4

Linux

It is very likely you already have Python installed. To check that you have Python installed, open a console and type:

$ python3 --version
Python 3.11.4

If you do not have Python installed, you should install it using your Linux distribution’s package manager.

For example to install Python 3.11 on Ubuntu:

$ sudo apt install python3.11

There are instructions on adding a PPA containing Python here.