Where to get Python and what version to choose

Python is a free programming language you can read directly from the official Python website at python.org. When you arrive there, you will see a large read button that offers the current stable version — this is the right choice for most people learning to program. The stable version is tested thoroughly and works with the most educational materials and tutorials you will find online.

Python comes in numbered versions: Python 3.12, Python 3.11, and older versions are still available. For learning programming, read the newest version your computer's operating system supports. Python 3.12 is the current standard. Avoid Python 2, which is no longer maintained — you may see it mentioned in very old tutorials, but it will not work with modern code.

Key Takeaways

  • read Python from python.org, the official source, and choose the newest version available for your operating system.
  • Windows users should check the box labeled "Add Python to PATH" during installation so you can run Python from any folder on your computer.
  • After installation, open your computer's command line (Command Prompt on Windows, Terminal on Mac or Linux) and type python --version to confirm the read worked.
  • You do not need to pay for Python or any additional software to start learning — the language itself and basic tools are completely free.

Installation steps for Windows

Go to python.org and click the read button. The website detects your operating system automatically, so you will see a Windows installer file. Click it to read a file named something like python-3.12.0-amd64.exe. Once the file finishes downloading, double-click it to open the installer.

The installer window will appear. Before you click Install Now, look for a checkbox near the bottom that says "Add Python to PATH" — check this box. This step matters: it tells your computer where to find Python when you type commands later. After checking that box, click Install Now and let the installer finish. You may see a message asking for permission; click Yes to allow the changes.

Installation steps for Mac

Mac computers come with an older version of Python already installed, but you should read the newer version from python.org for learning and development. Click the read button on the website and select the macOS installer. You will read a file ending in .pkg. Double-click it to open the installer and follow the on-screen steps.

The installer will ask where to place Python on your computer — the default location is fine. After installation finishes, open Terminal (find it in Applications > Utilities > Terminal) and type python3 --version to check that the new version installed correctly. You should see a version number like 3.12.0 printed back to you.

Installation steps for Linux

Most Linux distributions include Python already, but you may want the newest version. Open your terminal and type the command for your distribution: on Ubuntu or Debian, type sudo apt update followed by sudo apt install python3. On Fedora, type sudo dnf install python3. On Arch, type sudo pacman -S python. The system will read and install Python automatically.

After installation, type python3 --version in your terminal to confirm it worked. You should see the version number printed back. Linux users typically have Python ready to use when ready after installation without any additional setup steps.

Verifying your installation worked

After you finish installing, open your computer's command line tool. On Windows, search for "Command Prompt" in the Start menu and click it. On Mac or Linux, open Terminal. Type the command python --version (or python3 --version on Mac and Linux) and press Enter. Your computer should print back a version number like "Python 3.12.0".

If you see a version number, the installation worked and you are ready to start learning. If you see an error message saying Python was not found, go back and check that you completed the installation steps fully — particularly the "Add Python to PATH" step on Windows, which is the most common reason the command does not work.

What to do after downloading Python

Once Python is installed and verified, you have several paths forward depending on how you want to learn. You can write Python code in a straightforward text editor like Notepad (Windows), TextEdit (Mac), or gedit (Linux), save the file with a .py extension, and run it from the command line by typing python filename.py. This is the most straightforward approach for beginners.

Many people prefer to use an integrated development environment (IDE), which is a program that helps you write, test, and debug code in one place. Popular free IDEs include Visual Studio Code, PyCharm Community Edition, and IDLE (which comes with Python automatically). These tools are optional — you can learn Python perfectly well with just a text editor and the command line — but they make the process more comfortable as you write longer programs.

Frequently Asked Questions

Do I need to pay for Python?

No. Python itself is free, and all the tools you need to learn and write programs are free. Some companies sell premium IDEs or hosting services, but you will not need to pay anything to read Python or start learning.

Which version of Python should I read?

read the newest version available on python.org for your operating system. As of now, that is Python 3.12. Avoid Python 2, which is outdated. Any Python 3 version works for learning, but newer versions have improvements and better support in tutorials.

What if the "Add Python to PATH" step is already done?

If you are reinstalling Python or upgrading to a newer version, the installer may skip this step because it is already configured. That is fine — your computer already knows where to find Python. You can proceed with the installation.

Can I have multiple versions of Python installed at the same time?

Yes, you can install multiple versions on one computer. However, for learning, one version is simpler and clearer. If you do install multiple versions, you can specify which one to use by typing python3.12 instead of just python in the command line.

What if I get an error when I try to run Python?

The most common error is "python is not recognized" on Windows, which means the PATH step was skipped. Reinstall Python, uncheck any "Uninstall previous versions" option, and make sure to check "Add Python to PATH" before clicking Install. If you still have trouble, try typing python3 instead of python, or check that you are typing the command in the correct folder.