Maybe there is problem with your interpreter.

Try this: Ctrl + Shift + PPython: Select Interpreter → select your path (C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\python.exe)

https://code.visualstudio.com/docs/python/environments

Answer from Kezif Garbian on Stack Overflow
🌐
GitHub
github.com › microsoft › vscode-python › issues
Issues · microsoft/vscode-python
LabelsMilestonesNew issue · Open · Closed · triage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team · Status: Open. #25925 In microsoft/vscode-python; · Guimagn opened · on Apr 20, 2026 · feature-requestRequest for new features or functionalityRequest for new features or functionality ·
Author   microsoft
🌐
Visual Studio Code
code.visualstudio.com › docs › python › linting
Linting Python in Visual Studio Code
November 3, 2021 - Linting highlights semantic and stylistic problems in your Python source code, which often helps you identify and correct subtle programming errors or coding practices that can lead to errors. For example, linting can detect the use of an undefined variable, calls to undefined functions, missing parentheses, and even more subtle issues such as attempting to redefine built-in types or functions.
Discussions

windows - Visual Studio Code not running Python - Stack Overflow
Once you choose that you do trust it, it will let you run and debug your python files in that folder. ... I needed to do the equivalent of blowing in the NES cartridge... IN VSCode, next to the "Run" icon, there is a drop down arrow. More on stackoverflow.com
🌐 stackoverflow.com
Why is using Python in VSCode such a pain in the butt?
I've actually found VSCode quite easy to work with as far as virtual environments are concerned. Create your project folder, create a .venv in that project folder, open folder in VSCode and it should just automatically detect the venv and switch to that interpreter. If it doesn't, Ctrl+Shift+P and search for "Python: Select Interpreter" and pick the venv's interpreter from the dropdown. You absolutely should not have to manually mess with your PYTHONPATH to do this. More on reddit.com
🌐 r/learnpython
95
53
August 22, 2022
a problem on vscode can't find python interpreter
Type: Bug Behaviour The Python extension fails to discover any interpreters (including the local venv) and the "Run Python File" button becomes unresponsive on the second and subsequent l... More on github.com
🌐 github.com
13
February 6, 2026
Issue with python 3.11.1 on visual studio code
We uses Python in our application. The current version of python we are using is 3.10.6 and I want to upgrade to the newer version 3.11.x. But there is an issue I am facing with 3.11.x version. We launch Visual studio code from our application by running python scripts. More on discuss.python.org
🌐 discuss.python.org
0
0
May 23, 2023
🌐
Visual Studio Code
code.visualstudio.com › docs › python › editing
Editing Python in Visual Studio Code
November 3, 2021 - Also note that for symbols coming from installed packages (typically located under the site-packages folder of your Python environment), only those defined in the package's root folder, such as in its __init__.py file, are suggested by these Quick Fixes.
🌐
Reddit
reddit.com › r/learnpython › why is using python in vscode such a pain in the butt?
r/learnpython on Reddit: Why is using Python in VSCode such a pain in the butt?
August 22, 2022 -

So I'm learning python and initially started using Pycharm but have been trying to get comfortable writing Python in VSCode.

So I'm now comfortable using python3 -m venv myenv and . myenv/bin/activate to create and use a virtual environment. But then i spent like 3 hours messing around because I was getting a "ModuleNotFoundError: No module named X" error by importing a sub-folder referencing a Class into my main.py file and came across this article for a solution, adjusting PYTHONPATH.

I think it turned out I wasn't referencing a instance variable correctly, but I had to talk to 3 people to figure out what was going on. VScode wasn't running but terminal was running the program without this error.

Anyways... is that all I need to learn to run python in Vscode or are there other weird things I will have to learn to keep in mind with starting a project in VSC?

🌐
GitHub
github.com › microsoft › vscode-python › issues › 25769
a problem on vscode can't find python interpreter · Issue #25769 · microsoft/vscode-python
February 6, 2026 - Type: Bug Behaviour The Python extension fails to discover any interpreters (including the local venv) and the "Run Python File" button becomes unresponsive on the second and subsequent launches of VS Code. Crucially, the extension only ...
Author   Rare6866
🌐
Python.org
discuss.python.org › python help
Issue with python 3.11.1 on visual studio code - Python Help - Discussions on Python.org
May 23, 2023 - We uses Python in our application. The current version of python we are using is 3.10.6 and I want to upgrade to the newer version 3.11.x. But there is an issue I am facing with 3.11.x version. We launch Visual studio co…
Find elsewhere
🌐
GitHub
github.com › microsoft › vscode-python › issues › 5446
Visual studio code python plugin does not work properly · Issue #5446 · microsoft/vscode-python
April 24, 2019 - Issue Type: Feature Request Unable to select python interpreter via "Python: Select Interpreter" command The error command 'python.setInterpreter' was not found. Make sure the computer is properly installed python3.7 CMD can successfully...
Author   JUNKC
🌐
GitHub
github.com › microsoft › vscode-python › issues › 21791
Python Execution Error in Visual Studio Code · Issue #21791 · microsoft/vscode-python
July 28, 2023 - Type: Bug Description: I have encountered an error while trying to execute Python files in Visual Studio Code (VSCode). Despite confirming that the Python path is correctly set and functional in my system, the following error message per...
Author   arg387
🌐
Code with Mosh
forum.codewithmosh.com › python
Cant run python code in vs code - Python - Code with Mosh Forum
May 31, 2023 - every time i try to code using vs code in my m2 macbook air i get the following message in output , i am new to coding /bin/sh: python: command not found
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 931646 › vs-code-python-2022-10-x-extension-causes-the-debu
VS Code Python 2022.10.x extension causes the debugger to not work - Microsoft Q&A
July 18, 2022 - VS Code Python 2022.10.0 (or 2022.10.1) extension causes the debugger to not work OS: MacOS - latest version Python version being used: 3.6.8 Issue: Press F5 = Debugger tools UI/buttons pop-up and then quickly close/disappear. …
🌐
Visual Studio Code
code.visualstudio.com › docs › languages › python
Python in Visual Studio Code
November 3, 2021 - Learn about Visual Studio Code as a Python IDE (code completion, debugging, linting).
🌐
Python.org
discuss.python.org › python help
Problems with setting up Visual Studio Code with Python - Python Help - Discussions on Python.org
December 29, 2024 - I downloaded VS Code and wanted to set it up with Python but it’s not working right. First of all I made 2 print statements. But when I ran my code, only the first statement got printed to the output window. Weird. Then…
🌐
Visual Studio Code
code.visualstudio.com › docs › python › environments
Python environments in VS Code
November 3, 2021 - In the Python Projects view, click the environment shown under your project (or "No environment") ... The selected environment is used whenever you run or debug files in that project. Click the environment to change it. When you assign an environment to a project, the extension writes to your workspace settings (.vscode...
🌐
GitHub
github.com › microsoft › vscode-python › issues › 21610
VSCode won't run python code anymore using run-button · Issue #21610 · microsoft/vscode-python
July 11, 2023 - Type: Bug Since a recent update of VSCode, none of the "run" buttons / menu-entries / key-combo's work anymore when trying to run any python-script. There's nothing happening, no warning, no error, nothing. Manually entering "python.exe ...
Author   bartgrefte
🌐
GitHub
github.com › microsoft › vscode-python › issues › 20973
Modules not imported · Issue #20973 · microsoft/vscode-python
April 2, 2023 - Type: Bug My settings are below: { "workbench.startupEditor": "none", "files.exclude": { "**/.vscode": true, "**/MyEnv": true }, "editor.formatOnPaste": true, "editor.formatOnSave": true, "editor.formatOnType": true, "terminal.integrated...
Author   AmericanY
🌐
Visual Studio Code
code.visualstudio.com › docs › python › debugging
Python debugging in VS Code
November 3, 2021 - By default, the debugger uses the same interpreter selected for your workspace, just like other features of Python extension for VS Code. To use a different interpreter for debugging specifically, set the value for python in launch.json for the applicable debugger configuration.
🌐
Visual Studio Magazine
visualstudiomagazine.com › articles › 2022 › 04 › 01 › vs-code-python-apr22.aspx
Python in VS Code Team Is Breaking Up Big Extension -- Visual Studio Magazine
April 1, 2022 - Microsoft's Python in Visual Studio Code dev team has begun to break up its big, super-popular extension into separate tools in the regular monthly update for April 2022.
🌐
GitHub
github.com › microsoft › vscode-python-debugger › issues
Issues · microsoft/vscode-python-debugger
Install previous versions of the Python Debugger extension in VSCode. #193 · JanieHuang opened · on Feb 5, 2024 · 5 · Search Issues · is:issue state:open · is:issue state:open Search · LabelsMilestonesNew issue · Open · Closed · feature-requestRequest for new features or functionalityRequest for new features or functionality ·
Author   microsoft
🌐
GitHub
github.com › microsoft › vscode-python › issues › 9576
VS Code claiming that python isn't installed even when an interpreter is showing in the status bar · Issue #9576 · microsoft/vscode-python
January 14, 2020 - I have python installed and I have pythonPath set, but whenever I open a python project folder I get this popup I get the poput even though I already opened this project previously in VSCode. And even more weird is that I just had a proj...
Author   yankyhoffman