There are two recommended ways to install Python on Windows:
✅ Using the official installer (best for beginners)
✅ Using Winget (great for developers & quick setup)
✅ Method 1: Install Python from Official Website (Beginner Friendly)
Step 1: Check If Python Is Already Installed
Press Win + R
Type
cmdPress Enter
Then run:
python --versionor
python3 --versionIf Python is installed, you’ll see something like:
Python 3.x.xIf not, continue below.
Step 2: Download Python
Click Download Python (latest version)
Download the Windows installer (64-bit)
Step 3: Run the Installer (IMPORTANT STEP)
Double-click the downloaded
.exefile✅ Check the box: "Add Python to PATH" (Very Important)
Click Install Now
Wait for installation to complete.
Step 4: Verify Installation
Open Command Prompt again and run:
python --versionYou should see the installed version.
Step 5: Check pip (Python Package Manager)
pip --versionIf 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.3Step 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