The following steps detail how you can install Python on a Windows or Linux machine. Python 3.10.2 is the latest version at the time of writing, so we'll be using this in any examples. Anywhere you see this version number in a command or URL, you can usually just replace it with your desired number and follow along.
Installing on Windows
- Head to the official Python downloads page and download your desired installer.
- Run it, but before you choose how to install make sure you select "Add Python 3.10.2 to PATH" (marked with a red asterisk). It's entirely optional but without it you won't be able to run Python from a console window without explicitly stating the path.
- If you're prompted to disable the Path length limit, this is not necessary but may benefit you in other ways. It's recommended you do your own research if this sounds like something you'd like.
- You've now successfully installed Python.
Installing on Linux