Ask questions"Python not installed" diagnostic despite showing an interpreter in the status bar

<!-- Please search existing issues to avoid creating duplicates. -->

Environment data

  • VS Code version: 1.45.1
  • Extension version (available under the Extensions sidebar): 2020.5.78807
  • OS and version: Catalina 10.15.4
  • Python version (& distribution if applicable, e.g. Anaconda): 3.8.0
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv

Expected behaviour

Be able to create a folder or workspace for Python projects.

Actual behaviour

Popup error saying that Python is not installed.

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

I just started using VSCode. I installed the Python Extension (2020.5.78807). I have python 3.8.0 installed. I can confirm that by running python --version in the terminal in VSCode. The interpreter in the bottom left of the screen shows as 3.8.0. Command pallet shows the same interpreter.

I can create a new file and save it as a .py and it works with no issues. However, if I create a folder or a workspace and then create a file in that, I get a popup saying that Python is not installed (source: Python(Extension).

The code still seems to run ok. I tried uninstalling and reinstalling the extension but no luck. Any thoughts on how I can get rid of this error?


Answer questions luabud

We released a fix for this, but if people are still having issues please do let us know.


Related questions

Auto Scroll in the Jupyter output hot 3
Workspace contains pipfile but pipenv --venv failed hot 2
Can you turn off the Microsoft Python Language Server? hot 2
Unable to debug Python tests (duplicate entries in &#34;env&#34;) hot 2
Jupyter server crashed. Unable to connect. Cannot assign requested address hot 2
Auto Scroll in the Jupyter output hot 2
Unable to run launch targets with newest VS Code Python extension hot 2
Unable to start jupyter python interactive window hot 1
HBox output is not shown correctly in the interactive window hot 1
Debug -> Add Debug Configuration 'Cannot read property openConfigFile' hot 1
VSCode cannot connect to jupyter server; with browser this works fine hot 1
Linux arm64/aarch64 support hot 1
Add setting to disable icon for "Run Python File In Terminal" hot 1
Extension Host keeps crashing hot 1
Activate environment before debugging tests hot 1
Github User Rank List