FastAPI - Beginner to Pro / Python Installation & Refresher

Python Installation on Windows

There are two recommended ways to install Python on Windows:

  1. ✅ Using the official installer (best for beginners)

  2. ✅ Using Winget (great for developers & quick setup)


✅ Method 1: Install Python from Official Website (Beginner Friendly)

Step 1: Check If Python Is Already Installed

  1. Press Win + R

  2. Type cmd

  3. Press Enter

Then run:

python --version

or

python3 --version

If Python is installed, you’ll see something like:

Python 3.x.x

If not, continue below.


Step 2: Download Python

  1. Go to: https://www.python.org/downloads/windows/

  2. Click Download Python (latest version)

  3. Download the Windows installer (64-bit)


Step 3: Run the Installer (IMPORTANT STEP)

  1. Double-click the downloaded .exe file

  2. ✅ Check the box: "Add Python to PATH" (Very Important)

  3. Click Install Now

Wait for installation to complete.


Step 4: Verify Installation

Open Command Prompt again and run:

python --version

You should see the installed version.


Step 5: Check pip (Python Package Manager)

pip --version

If pip works, you're ready to install libraries:

pip install fastapi

🚀 Method 2: Install Python Using Winget (Developer Friendly)

Windows 10/11 includes a package manager called Winget.


Step 1: Open PowerShell as Administrator

Press Win, search for PowerShell, right-click → Run as Administrator.


Step 2: Install Python

winget install Python.Python.3

Step 3: Verify Installation

python --version

⚠️ Common Problems & Fixes

❌ "Python is not recognized"

This means Python was not added to PATH.

👉 Reinstall Python and make sure to check:

✔ Add Python to PATH