Skip to content

Run Python File button "command not found" after installing the extension #1123

@leobrqz

Description

@leobrqz

I had the deprecated Python Environments extensions and updated to this new one. Everything was working fine a second before i did this.

When creating a new project, enviroment and opening a new terminal, it properly shows up (.venv) on the terminal.

pip install works fine and goes to the .venv

If i run python main.py on the terminal directly (bash) it works just fine

But, if I tried to run with the button on the top right, it returns this multiple times in a row (like 8-12 times):

D:\Exercises\Python\.venv\Scripts\python.exe d:/Exercises/Python/main.py
bash: D:ExercisesPython.venvScriptspython.exe: command not found

This happens on multiple editors for some reason, even on a completely clean install of VScode

If i try again to run with the button, the error appears just one time, it doesn't spam it again.

More information:

On the settings.json:

    "python.useEnvironmentsExtension": true, # marked as "Unkown" -  I've tried changing to false and restarting, didn't do anything
    "python.defaultInterpreterPath": "c:\\Users\\Conta\\AppData\\Local\\Python\\pythoncore-3.14-64\\python.exe" # Removing it doesn't do anything also

My versions:

python 3.14.0
pip 25.2

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugconfirmation-pendingThe issue needs to be confirmed through a maintainer reproducing the bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions