Installing Python in Visual
Studio Code
A step-by-step beginner guide
Prepared for students
Step 1: Download Python
1. Go to https://www.python.org
2. Click Downloads
3. Download Python 3.x (64-bit)
Step 2: Install Python
IMPORTANT:
✔ Check 'Add Python to PATH'
✔ Click Install Now
Step 3: Verify Python
Installation
Open Command Prompt
Type:
python --version
or
py --version
Step 4: Install Visual Studio
Code
Go to https://code.visualstudio.com
Download and install VS Code
Step 5: Install Python
Extension
Open VS Code
Go to Extensions
Search 'Python'
Install Python by Microsoft
Step 6: Select Python
Interpreter
Press Ctrl + Shift + P
Type: Python: Select Interpreter
Choose Python 3.x
Step 7: Test Python in VS Code
Create hello.py
Type:
print('Hello, world!')
Click Run
▶
Common Errors & Fixes
Python not recognized → Reinstall & check PATH
Wrong version → Select Interpreter
You Are Ready!
Python is now installed and running in VS Code

Installing Python in Visual Studio Code

  • 1.
    Installing Python inVisual Studio Code A step-by-step beginner guide Prepared for students
  • 2.
    Step 1: DownloadPython 1. Go to https://www.python.org 2. Click Downloads 3. Download Python 3.x (64-bit)
  • 3.
    Step 2: InstallPython IMPORTANT: ✔ Check 'Add Python to PATH' ✔ Click Install Now
  • 4.
    Step 3: VerifyPython Installation Open Command Prompt Type: python --version or py --version
  • 5.
    Step 4: InstallVisual Studio Code Go to https://code.visualstudio.com Download and install VS Code
  • 6.
    Step 5: InstallPython Extension Open VS Code Go to Extensions Search 'Python' Install Python by Microsoft
  • 7.
    Step 6: SelectPython Interpreter Press Ctrl + Shift + P Type: Python: Select Interpreter Choose Python 3.x
  • 8.
    Step 7: TestPython in VS Code Create hello.py Type: print('Hello, world!') Click Run ▶
  • 9.
    Common Errors &Fixes Python not recognized → Reinstall & check PATH Wrong version → Select Interpreter
  • 10.
    You Are Ready! Pythonis now installed and running in VS Code