forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
triage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
Description
Type: Bug
Environment
- OS: Windows 11
- Editor: Kiro (VS Code-based)
- Python Extension version: v2026.4.0
- Python: 3.13.5
- Package manager: uv 0.11.1
Steps to Reproduce
- Create a new project using
uv init - Run
uv venvanduv syncto create the virtual environment - Open the project in the editor
Ctrl + Shift + P→ "Python: Select Interpreter"- Choose "Enter interpreter path..." → "Find..."
- Navigate to
.venv\Scripts\python.exeand select it
Expected Behavior
The interpreter should be set to .venv\Scripts\python.exe without errors.
Actual Behavior
Error message: "Unable to handle c:\Users[username]....venv\Scripts\python.exe"
The interpreter is not set. The .venv is valid and .venv\Scripts\python.exe --version returns Python 3.13.5 successfully from the terminal.
Workaround
Manually setting the interpreter path in .vscode/settings.json works:
{
"python.defaultInterpreterPath": "${workspaceFolder}\\.venv\\Scripts\\python.exe"
}Additional Info
The virtual environment was created by uv (v0.11.1). The issue appears to be with the interpreter picker UI, not the venv itself.
Extension version: 2026.4.0
VS Code version: Code 1.112.0 (07ff9d6178ede9a1bd12ad3399074d726ebe6e43, 2026-03-17T18:09:23Z)
OS version: Windows_NT x64 10.0.22631
Modes:
- Python version (& distribution if applicable, e.g. Anaconda): 3.13.5
- Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): System
- Value of the
python.languageServersetting: Default
User Settings
languageServer: "Pylance"
</p>
</details>
<details>
<summary>Installed Extensions</summary>
|Extension Name|Extension Id|Version|
|---|---|---|
|astronomic-theme|mys|0.9.2|
|bruno|bru|4.5.0|
|debugpy|ms-|2025.18.0|
|js-debug|ms-|1.112.0|
|js-debug-companion|ms-|1.1.3|
|json-sort-and-compare|far|0.0.6|
|python|ms-|2026.4.0|
|remote-wsl|ms-|0.104.3|
|ruff|cha|2026.38.0|
|vscode-js-profile-table|ms-|1.0.10|
|vscode-pylance|ms-|2026.1.1|
|vscode-python-envs|ms-|1.24.0|
</details>
<!-- generated by issue reporter -->
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
triage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team