Here's a step-by-step guide to installing Python on Windows:
Step 1: Download Python Installer
-
Visit the official Python website:
🔗 https://www.python.org/downloads/
-
Click on the "Download Python X.X.X" button (X.X.X is the latest version).
Step 2: Run the Installer
- Locate the downloaded
.exe file (usually in your Downloads folder).
- Double-click to run the installer.
Step 3: Important Setup Options
- Check the box: “Add Python X.X to PATH” – This is crucial!
- Then click "Install Now"
This will install Python and pip (Python package manager) automatically.
Step 4: Verify Installation
After installation is complete:
-
Open Command Prompt (cmd)
-
Type:
python --version
or
py --version
If installed correctly, you’ll see something like:
Python 3.X.X
To check pip:
pip --version
Step 5 (Optional): Install via Microsoft Store
- Search "Python" in the Microsoft Store.
- Choose the latest version and click Install.
(This method also works fine but lacks customization options.)
Step 6 (Optional): Install a Code Editor
For easier Python development, you can install a code editor like: