Skip to content

Install Python

This page covers the practical minimum: install Python, verify it works, and avoid the most common setup mistakes.

Download Python from the official site:

Choose a current Python 3 release unless your project explicitly requires an older version.

  • Enable the option to add Python to PATH.
  • Install pip if it is not already selected.
  • If you are unsure, the default install is usually enough.
  • Use the official installer or your preferred package manager.
  • Verify which interpreter you are actually using after installation.

Many distributions already include Python, but not always the version you want. Install or update it with your package manager when needed.

Run one of these commands:

Terminal window
python --version

or:

Terminal window
python3 --version

Then verify pip:

Terminal window
python -m pip --version

Create a file named hello.py:

print("Hello, Python")

Run it:

Terminal window
python hello.py

If that works, your machine is ready for the next step.

The interpreter is either not installed correctly or is not on PATH.

Use python -m pip ... so the package manager runs under the interpreter you intend to use.

That is normal. Just be deliberate about which interpreter your project uses.