Hello hope your doing well thanks for reaching out !
Step 1: Confirm Python is Installed Correctly
- Open Command Prompt (press Windows + R, type cmd, then press Enter).
- Type: python --version and press Enter.
- If it shows something like Python 3.11.4 (or your installed version), you're good!
- If not, Python might not be added to your system PATH. Reinstall Python and check the box that says "Add Python to PATH" during installation.
Step 2: Open VS Code
- Launch Visual Studio Code.
- If not, Python might not be added to your system PATH. Reinstall Python and check the box that says "Add Python to PATH" during installation.
- If prompted to install the Python extension, click Install. If not prompted:
- Click on the Extensions icon (left sidebar or press Ctrl+Shift+X).
- Search for "Python" by Microsoft and click Install.
Step 3: Open or Create a Python File
- Open a folder or create a new one for your project.
- Inside that folder, create a new file and name it something like test.py.
Step 4: Select the Python Interpreter - Press Ctrl+Shift+P to open the Command Palette.
- Type: Python: Select Interpreter and click it.
- Search for "Python" by Microsoft and click Install.
- You should now see a list of available Python versions.
- Look for the one that says something like Python 3.14 (64-bit) and select it. - If you don’t see it, click "Enter interpreter path" and then "Find..." to browse to where Python is installed (usually something like C:\Users\YourName\AppData\Local\Programs\Python\Python314\python.exe) - Step 5: Test It Out 1. In your test.py file, type: print("Hello, Python!") Right-click anywhere in the file and choose "Run Python File in Terminal".
- Click on the Extensions icon (left sidebar or press Ctrl+Shift+X).
- If it shows something like Python 3.11.4 (or your installed version), you're good!
- You should see the output in the terminal below.