1

I am trying to add the python interpreter to VSCode as it shows an error. Error given

Every time I click on this error message to add the interpreter it will show me which interpreters I can select. When I select one of these nothing happens and the same error still shows.Selection of interpreter

I have tried uninstalling and reinstalling both VSCode and python 3.10 also tried python 3.9 but neither works.

2
  • Have you tried to reinstall the python extension? Or install another version of the python extension? Commented Nov 8, 2021 at 6:25
  • I have reinstalled the python extension yet there is no change. I also just tried 4 previous versions and the same issue occurs. Commented Nov 8, 2021 at 11:42

1 Answer 1

2

Press Ctrl+Shift+P to bring up the command palette, run command Preferences: Open Settings (JSON) and add the interpreter setting by hand:

"python.defaultInterpreterPath": "path\to\your\python.exe"
Sign up to request clarification or add additional context in comments.

2 Comments

This does work thank you (python runs). However is the select python interpreter problem still shows, do you know if this is possible to fix?
Oh, that is strange. I have no idea, sorry!

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.