Install Python on Your Computer

Install Python on Windows, macOS, or Linux, check the version, and understand which command to use next.

6 min read

Before you can install Python successfully, it helps to know what you are installing. Your computer needs a Python interpreter. The interpreter is the program that reads your .py files and runs the instructions inside them.

At publication time in July 2026, Python.org lists Python 3.14.6 as the current download. For a new learner, the best default is the latest stable Python 3 version from Python.org's download page, which detects your operating system and shows the current stable release. Use a different Python 3 version only when a class, job, or project tells you to.

Python.org homepage showing the download button for the latest Python release

Python.org homepage showing the download button for the latest Python release

After this setup, you will be ready to choose a Python code editor and write and run your first Python program.

Check whether Python is already installed

Open a terminal first. The terminal is called Terminal on macOS and many Linux systems. On Windows, use PowerShell or Windows Terminal.

Try these commands:

bashbash
python --version
python3 --version

One of them may print a version, such as:

bashbash
Python 3.14.6

If a command prints a Python 3 version, Python is already available. If the command is not found, or it opens the Microsoft Store when you did not expect it, install Python using the steps for your operating system.

Do not worry if your computer uses python in one place and python3 in another. That difference is common. The important part is knowing which command runs Python 3 on your machine.

Install Python on Windows

For most beginners on Windows, the simplest path is the official Python installer or Python Install Manager from Python.org. Download the current stable Python 3 release, run the installer, and accept the default options unless you have a reason to customize them.

During installation, make sure Python is available from your terminal. Older installers showed an option called "Add Python to PATH". Current Python installation tools may handle the global python command for you, but the goal is the same: after installation, a terminal command should be able to start Python.

After installation, close and reopen PowerShell. Then run:

bashbash
python --version

If Windows also provides the Python launcher, this command can help list installed versions:

bashbash
py list

If python --version works, you are ready for the next lesson. If it does not, restart the terminal once more and check the installer settings. If you still have trouble, save the exact error message for common Python installation errors.

Install Python on macOS

macOS may include tools that use Python internally, but beginners should not rely on or remove system-managed Python. Install your own Python version for learning.

Download the macOS installer from Python.org, open the package, and follow the prompts. When it finishes, open Terminal and run:

bashbash
python3 --version

On many Macs, the command is python3, not python. That is normal. Use the command that prints your installed Python 3 version.

If you already use Homebrew to manage command-line tools, you can install Python that way instead:

bashbash
brew install python

Homebrew keeps Python separate from system Python and makes upgrading later as simple as brew upgrade python. Either the official installer or Homebrew is fine. Use whichever you are already comfortable with.

If you later see a different Python version in an editor, check which interpreter the editor selected. The terminal and editor should point to the same learning install unless you intentionally created a separate project environment.

You can also open the Python interactive shell:

bashbash
python3

To leave the shell, type:

pythonpython
exit()

Install Python on Linux

Many Linux distributions already include Python because system tools depend on it. Check first:

bashbash
python3 --version

If Python 3 is available, you can use it for beginner lessons. If it is missing, install it through your distribution's package manager. For example, Debian and Ubuntu based systems commonly use apt, Fedora uses dnf, and Arch based systems use pacman.

Linux package versions can differ from the latest Python.org release because distributions test and ship packages on their own schedule. That is fine for beginner lessons as long as you have a supported Python 3 version. If a course requires a newer version, follow the course setup instructions carefully.

Avoid deleting system Python on Linux. Removing it can break operating system tools.

Verify the interpreter

If you need a specific past release instead of the newest one, Python.org also lists every version by release date.

Python.org release table listing every Python version by release date

Python.org release table listing every Python version by release date

A good install passes three checks.

First, the version command works:

bashbash
python --version

or:

bashbash
python3 --version

Second, the interactive shell opens:

bashbash
python

or:

bashbash
python3

You should see a prompt that starts with >>>. Try a tiny calculation:

pythonpython
>>> 2 + 2
4

Third, you can leave the shell:

pythonpython
>>> exit()

These checks prove that Python can run commands on your computer.

Understand python, python3, and py

Beginners often get confused by Python commands. The command name depends on your operating system and install method.

Common patterns are:

SystemCommon command
Windowspython or py
macOSpython3
Linuxpython3

These are command names, not different languages. They all start a Python interpreter when configured correctly.

When a tutorial says python, use the command that works on your machine. If your computer uses python3, replace python with python3 in terminal commands.

Do not install too much yet

At this point, you only need Python and a terminal. You do not need to install every package manager, notebook tool, or framework before writing your first program.

The next beginner steps are:

  1. Choose one editor.
  2. Create one folder for practice.
  3. Save one .py file.
  4. Run it from the editor or terminal.

You will learn virtual environments when you start installing third-party packages.

Your first install goal

Your goal is not to understand every install option. Your goal is to make this command work:

bashbash
python --version

or this one:

bashbash
python3 --version

Once one command prints Python 3, your computer is ready for beginner Python practice.

Rune AI

Rune AI

Key Insights

Install a current stable Python 3 release unless a project says otherwise; Verify the install with a version command before writing code; Keep system Python separate from the Python version you use for learning.

RunePowered by Rune AI

Frequently Asked Questions

Which Python version should beginners install?

Beginners should install the current stable Python 3 release from Python.org unless a course, workplace, or project requires a specific older Python 3 version.

Should I uninstall old Python versions first?

Not always. Some systems can keep multiple Python versions installed. If you are new, avoid deleting system Python on macOS or Linux. Install a user-managed Python version and verify which command runs it.

Should I use the python.org installer or Homebrew on macOS?

Either works. The python.org installer is simplest for a first install. Homebrew is a good fit if you already use it for other command-line tools, since brew upgrade python keeps Python current with one command.

Do I need a code editor before installing Python?

No. Install Python first so your editor can find an interpreter. After Python works in the terminal, choose an editor and connect it to that same Python installation.

Conclusion

A working Python installation means you can run a version command, open the interpreter, and execute a small script. Once that works, move to an editor and write your first file.