-2

Has anybody seen this error while trying to to choose the python interpreter in VSCode?
enter image description here

I immediately get an error when trying to find an appropriate interpreter. Is there any way around this problem? I have tried uninstalling and reinstalling both VSCode and Python but nothing seems to work.

Thank you all in advance.

MingJie-MSFT
  • 5,569
  • 1
  • 2
  • 13
Mahta
  • 3
  • 1

2 Answers2

0

Read the docs first.

Please ensure that python and python extensions are installed, and then select python interpreter(Ctrl+Shift+P then Python: Select Interpreter).

MingJie-MSFT
  • 5,569
  • 1
  • 2
  • 13
0

I tried all the uninstalling, cleaning and reinstalling in the world which didn't fix it, for me eventually this fixed the issue:

Click Restricted Mode in the bottom-left corner and click trust to trust this window.

Now you can use Ctrl + Shift + P to select the Python interpreter and you won't get the error where nothing seems to point at the workspace restriction being the problem.

Fhireman
  • 1
  • 1
  • 4