Skip to content

VS Code gives error there is no interpreter selected #3326

Closed
@qubitron

Description

Environment data

  • VS Code version: XXX
  • Extension version (available under the Extensions sidebar): XXX
  • OS and version: XXX
  • Python version (& distribution if applicable, e.g. Anaconda): XXX
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): XXX
  • Relevant/affected Python packages and their versions: XXX

Actual behavior

image

After clicking X:
image

Similar issue on macOS but instead it says "the default interpreter is invalid.

Expected behavior

VS Code selects a default python interpreter, or only does the second step

Steps to reproduce:

  1. mkdir newapp
  2. code .
  3. add hello.py
  4. open it

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)

XXX

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionality

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions