Skip to content

VSC Not Detecting Python Through .py Extension #25699

Closed

Description

I'm a beginner who's trying to learn Python with an exercise book. I have Python installed on my computer and the Python, Pylance, Debugger and Environments extensions on VSC.

VSC won't detect Python. When I open a new file in the folder, it doesn't detect Python after I add the ".py" extension. It's reading it as Plain Text. I tried switching the language to Python but it doesn't show up in the list.

I also have the Python interpreter set to the Python file on my machine. I have the correct Path in my environmental variables. Any help would be appreciated. Ty

Image
Image
Image

Activity

  1. changed the title [-]VSC Not Detecting Through .py Extension[/-] [+]VSC Not Detecting Python Through .py Extension[/+] on Dec 25, 2025
  2. eleanorjboyd commented on Jan 5, 2026

    @eleanorjboyd
    Member

    hm very strange, I haven't seen anything like this. Can you try reinstalling vscode or those specific extensions?

  3. coreytoomey commented on Jan 7, 2026

    @coreytoomey
    Author

    hm very strange, I haven't seen anything like this. Can you try reinstalling vscode or those specific extensions?

    It's been resolved, thank you. I installed a separate program for SQL learning which threw off the system en vars. I fixed it with a system restore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestRequest for new features or functionalitytriage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions