Where to get Python and which version to choose

Python is a free programming language you can download directly from python.org, the official website run by the Python Software Foundation. The site offers versions for Windows, macOS, and Linux. Most people should download the latest stable release — currently Python 3.12 or 3.13 — rather than older versions, because newer releases include security fixes and performance improvements.

You may see references to Python 2, which is no longer maintained. Avoid it. If you are learning Python for the first time or building a new project, use Python 3. The only reason to use an older Python 3 version is if a specific library or framework you need has not yet been updated to support the newest release, which is rare.

Key Takeaways

  • Download Python from python.org, not from app stores or third-party sites, to ensure you get the official version without bundled software.
  • Windows users should check the box labeled "Add Python to PATH" during installation so you can run Python from the command line without extra setup.
  • macOS users may already have Python 2 installed, but should download Python 3 separately from python.org because the built-in version is outdated.
  • After installation, open your command prompt or terminal and type python --version to confirm the download worked.
  • You do not need to pay for Python or create an account — the download is completely free and requires no registration.

Downloading Python on Windows

Go to python.org and click the large yellow "Download Python" button on the homepage. This downloads the latest stable release as a .exe installer file. Save it to your Downloads folder or anywhere you can find it easily.

Run the installer by double-clicking the .exe file. A window will appear with installation options. Before you click "Install Now", scroll down and check the box that says "Add Python to PATH". This step is important — it lets you run Python from your command prompt without typing the full file path every time. Then click "Install Now" and wait for the installation to finish.

Once the installer closes, open Command Prompt (search for "cmd" in the Windows search bar) and type python --version. If you see a version number like "Python 3.12.0", the installation worked. If you see "python is not recognized", go back and run the installer again, making sure you checked the "Add Python to PATH" box.

Downloading Python on macOS

macOS comes with Python 2 pre-installed, but Python 2 is no longer supported and should not be used for new projects. You need to download Python 3 separately from python.org. Click the yellow "Download Python" button and save the installer to your Downloads folder.

Double-click the installer file and follow the setup wizard. The default settings work for most users — you can click through and select "Install" when prompted. The installer will place Python in a standard location on your computer.

After installation, open Terminal (search for "Terminal" in Spotlight or find it in Applications > Utilities) and type python3 --version. Note that you type python3, not python, because the built-in Python 2 still responds to the python command. If you see a version number, the installation succeeded. If you want to type python instead of python3, you can create an alias in your shell configuration file, but that is optional and not necessary to start learning.

Downloading Python on Linux

Most Linux distributions come with Python 3 already installed. Open a terminal and type python3 --version to check. If you see a version number, you are ready to start — no download needed.

If Python is not installed or you want a newer version, use your distribution's package manager. 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. After installation, run python3 --version again to confirm.

Verifying your installation and running your first program

After you have installed Python on any operating system, you can test it by opening the interactive Python shell. In Command Prompt (Windows), Terminal (macOS), or a terminal window (Linux), type python or python3 and press Enter. You should see a prompt that looks like >>>. Type print("Hello, World!") and press Enter. If you see the text "Hello, World!" printed below, Python is working correctly.

Type exit() to leave the interactive shell and return to your command prompt. This interactive mode is useful for testing small pieces of code, but for real projects you will write Python code in a text editor or IDE (integrated development environment) and save it as a .py file. Popular free editors include Visual Studio Code, PyCharm Community Edition, and IDLE, which comes with Python.

Choosing an editor or IDE for writing Python

Once Python is installed, you need a place to write your code. You can use any text editor — even Notepad on Windows or TextEdit on macOS — but a code editor designed for programming is more helpful because it highlights syntax errors and organizes your files.

Visual Studio Code is free, lightweight, and works on all three operating systems. Download it from code.visualstudio.com, install it, then add the Python extension from the Extensions marketplace inside VS Code. PyCharm Community Edition is also free and designed specifically for Python, though it uses more computer memory. IDLE comes bundled with Python and is the simplest option if you want to start immediately without downloading anything else.

For beginners, IDLE or VS Code are good starting points. Download whichever appeals to you, or skip this step for now and come back to it once you have written a few programs in the interactive shell.

Troubleshooting common download and installation problems

If the installer will not run on Windows, make sure you are logged in as an administrator or right-click the .exe file and select "Run as administrator". If you see an error about a missing file, your download may have been interrupted — delete the installer and download it again from python.org.

If you installed Python but the python command does not work, you likely forgot to check "Add Python to PATH" on Windows. Uninstall Python (go to Settings > Apps > Apps & Features, find Python, and click Uninstall), then download and run the installer again, making sure to check that box this time. On macOS or Linux, make sure you are typing python3, not python.

If you see a message like "command not found" or "is not recognized as an internal or external command" after installation, restart your command prompt or terminal window. Sometimes the system needs to reload its list of available commands after you install new software.

Frequently Asked Questions

Do I need to pay for Python?

No. Python is free and open-source. You can download it, use it, and modify it without paying anything or creating an account. The official download from python.org is always free.

Can I download Python from the Microsoft Store or Mac App Store instead of python.org?

You can, but it is not recommended. The official python.org installer is maintained directly by the Python Software Foundation and is the most reliable source. Third-party versions may be outdated or missing features. Stick with python.org.

What is the difference between Python 3.12 and Python 3.13?

Python 3.13 is newer and includes performance improvements and new features, but both are stable and widely used. For learning, either works fine. If you are starting fresh, download the latest version. If a library you need does not support the newest version yet, the installer page shows which versions are compatible.

Do I need to uninstall old Python versions before installing a new one?

No. You can have multiple Python versions installed at the same time. However, if you only want one version, you can uninstall the old one through your system settings (Windows: Settings > Apps > Apps & Features; macOS: Applications folder; Linux: your package manager). Most people only need one version.

What should I do after Python is installed?

Open your command prompt or terminal, type python --version to confirm it works, then explore the interactive shell by typing python and experimenting with simple commands. Once you are comfortable, download a code editor like VS Code or PyCharm and start writing programs in .py files.