๐Ÿ“ Python

Installing Python

P
Author
PyLand Team
๐Ÿ“…
Published
30.06.2026
โฑ๏ธ
Reading time
1 min
๐Ÿ‘๏ธ
Views
360
๐ŸŒฑ
Level
Beginner

Choose the instructions for your operating system, install a currently supported Python 3 release, and verify that it runs from your terminal.

macOS

If you have Homebrew installed:

brew install python
python3 --version

Without Homebrew, download the macOS installer from the official python.org downloads page, run it, and follow the installer instructions.

Windows

  1. Open the official python.org downloads page
  2. Install a current Python 3 release
  3. If the installer offers to add Python to PATH, enable that option
  4. Open a new terminal and verify the installation:
python --version

If the python command is not found, try py --version.

Linux (Ubuntu/Debian)

Install Python from your distribution’s package repository:

sudo apt update
sudo apt install python3 python3-pip python3-venv
python3 --version

Do not remove or replace the system Python installation: the operating system may depend on it.

Verify the installation

On macOS and Linux, run:

python3 --version
python3 -m pip --version
python3 -c "print('Hello, Python!')"

On Windows, use python instead of python3. If only the py command is available, run py -m pip --version and py -c "print('Hello, Python!')".

Do you need pyenv?

You do not need it when you are just getting started. pyenv becomes useful when different projects require different Python versions. Install and configure it by following the project’s official instructions, because you must also enable its shell integration after installation.

  • a currently supported Python 3 release;
  • a code editor such as VS Code with the Python extension;
  • a separate venv virtual environment for each project.

Your reaction to the article

๐Ÿ’ฌ Comments (0)

๐Ÿ” Sign in to leave a comment
๐Ÿšช Login
๐Ÿ’ญ

No comments yet

Be the first to share your opinion about this article!

๐Ÿ”— Similar

Similar articles

Continue learning with these materials

๐Ÿ“

if __name__ == "__main__": the Python entry point

The if name == "main" guard defines a Python program's entry point: it distinguishes direct...

๐Ÿ“… 14.08.2026 ๐Ÿ‘๏ธ 43
๐Ÿ“

strip() and lower(): Preparing User Text ๐Ÿงน

A user may enter the correct word with extra spaces or different letter case. Python...

๐Ÿ“… 11.08.2026 ๐Ÿ‘๏ธ 49
๐Ÿ“

ord(), chr(), and Cyclic Letter Shifts in Python ๐Ÿ”

A string contains characters, but a computer stores every character as a numeric code. Python...

๐Ÿ“… 09.08.2026 ๐Ÿ‘๏ธ 88

Did you like the article?

Subscribe to our updates and be the first to receive new articles. Grow with PyLand!