Skip to content

Create Environment → Global fails with "Failed to fetch available Python versions" when uv is not installed #1832

Closed

Description

Environment data

  • Python Environments extension version: 1.38.0
  • Python extension (ms-python.python) version: 2026.4.0
  • VS Code version (Help → About): 1.139.1
  • OS and version: macOS 27.0 and Windows 11 25H2 (both fresh VMs)
  • Python version: 3.14.7 from python.org
  • Environment manager in use: system; uv is not installed
  • Remote / container scenario: none
  • Workspace type: single folder

Repro Steps

  1. On a machine without uv, open a folder with a .py file.
  2. Run "Python: Create Environment".
  3. Choose Global.

Expected behavior

It installs uv first, or tells me uv is required.

Actual behavior

"Failed to fetch available Python versions", and nothing else happens. Same on macOS and Windows.

Logs

Nothing shows in the Python Environments output channel, even at Trace.

Additional context

Looks like the version list is fetched with uv python list before the step that installs uv, so without uv it can never get that far.

Activity

  1. StellaHuang95 commented on Sep 28, 2026

    @StellaHuang95
    Contributor

    Thanks for reporting the issue. This one goes back to #1832 where SysPythonManager.create() in sysPythonManager.ts calls selectPythonVersionToInstall() first, which runs uv python list via getAvailablePythonVersions() with no isUvInstalled() gate.

    So without uv the spawn fails and the handler silently returns [], you get "Failed to fetch available Python versions".

    Eleanor Boyd (@eleanorjboyd) I see you have a draft PR open for this, would you like to keep it?

  2. added 3 commits that reference this issue on Oct 6, 2026
    8343cae
    1084e0b
    6ad5eca
  3. added a commit that references this issue on Oct 12, 2026
    cc8f6ac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions