Skip to content

Run button not working, Python interpreter not recognized, terminal stuck on PowerShell #25712

@Rabea707

Description

@Rabea707

Description

VS Code does not properly run Python files on my laptop.

  • The Run / Play button does not work
  • Python is installed and works in the system terminal
  • VS Code does not recognize or persist the selected Python interpreter
  • The integrated terminal always opens in PowerShell
  • Reinstalling VS Code and Python did not fix the issue
  • Same setup works correctly on another PC

This appears to be a VS Code editor or environment issue specific to this machine.


VS Code Version

Latest stable version (reinstalled multiple times)

OS Version

Windows 10 / Windows 11 (please adjust to the correct one)

Steps to Reproduce

  1. Install Python
  2. Install VS Code
  3. Open a .py file
  4. Click the Run / Play button
  5. Nothing happens / Python is not recognized

Expected Behavior

Python file should run using the selected interpreter.

Actual Behavior

Run button does nothing or VS Code fails to use Python.

Metadata

Metadata

Labels

area-environmentsFeatures relating to handling interpreter environmentsarea-terminalbugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions