7

I'm using VS Code on Windows and I get an error like this: Python is not installed. Please download and install Python before using the extension. But I Already Have Python 3.10.2 What Should I Do? Screenshot Of Error

4
  • Have you restarted your PC since the install? On Windows the $PATH environment variable only gets loaded on startup, so the new install of Python might not be "visible" yet Commented Mar 13, 2022 at 17:20
  • What's the result of python --version in the terminal out of the VSCode? Commented Mar 16, 2022 at 8:42
  • 1
    The result is: Python 3.10.2 Commented Mar 17, 2022 at 15:33
  • Same problem here. Python IS in the path. I can run both python --version and python3 --version in the terminal inside VS Code and it works. But it keeps saying Python is not installed when starting VS Code. Commented May 10, 2022 at 13:03

2 Answers 2

3

you probably installed Python from windows store. Please install from python website. Make sure to mark Add Python 3.X to PATH during installation. Then reopen your VScode.

enter image description here

Sign up to request clarification or add additional context in comments.

1 Comment

i already add to path variable but it didnt works
0

I got similar issue and it is fixed by below sequence

  1. click search source
  2. enter "> Python: Select Interpreter"
  3. Select Python execute file you already installed

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.