Lessons → Python Fundamentals → Lesson 02
BEGINNER

Python Installation & Setup

Learn how to install Python and prepare your computer for Python programming.

📖 12 min   •   📝 5 Questions

Installing Python

Before writing Python programs, Python needs to be installed on your computer.

Python is available for major operating systems such as Windows, macOS and Linux.

Important:

Download Python only from the official Python website.

Python Setup on Windows

The basic installation process is:

Step 1 — Download Python

Visit the official Python website and download the appropriate installer.

Step 2 — Run the Installer

Open the downloaded installer and follow the installation instructions.

Step 3 — Complete Installation

Finish the installation process and wait for Python to be installed.

Verify Python Installation

After installation, you can check whether Python is available from the command line.

Command Prompt
python --version

If Python is installed correctly, the command displays the installed Python version.

Python version information

Choose a Code Editor

A code editor makes writing and managing Python programs easier.

💻

VS Code

A popular code editor with Python extensions and development features.

🐍

IDLE

A simple development environment included with Python.

Run Your First Program

Create a file named hello.py.

hello.py
print("Hello, PyStep!")

Save the file and run it using your Python environment.

Hello, PyStep!

Quick Quiz

Test your understanding of this lesson.

1. Which command can be used to check the Python version?

Finished this lesson?