You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
VSC Not Detecting Python Through .py Extension #25699
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
Activity
[-]VSC Not Detecting Through .py Extension[/-][+]VSC Not Detecting Python Through .py Extension[/+]eleanorjboyd commentedon Jan 5, 2026
hm very strange, I haven't seen anything like this. Can you try reinstalling vscode or those specific extensions?
coreytoomey commentedon Jan 7, 2026
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.