Skip to content

Create virtual environment using astral-sh/uv #23666

Description

When selecting from the command palette Python: Select Interpreter, we can create a virtual environment using Venv or Conda. I propose to add to this list the faster https://github.com/astral-sh/uv tool, which creates an environment with:

uv venv --python path/to/interpreter

And install dependencies of the project in the current directory with the flag all with:

uv pip install -e .[all]

Or for a simple pip install command:

uv pip install numpy

Activity

  1. github-actions commented on Jun 24, 2024

    @github-actions

    Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue.

  2. mscheltienne commented on Jun 24, 2024

    @mscheltienne
    Author
  3. 001123 commented on Sep 11, 2024

    @001123

    Wish it would add soon 🙏

  4. epicwhale commented on Dec 8, 2024

    @epicwhale

    +1 to this

  5. nagyPista commented on Dec 17, 2024

    @nagyPista

    I think this can be implemented with the new Python Environments
    Lets see if the guys at UV Astral (@astral-sh) can help with it, here is an example on how to do it.

  6. MiguelElGallo commented on Dec 23, 2024

    @MiguelElGallo

    Now I get it, if you install this
    https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-python-envs
    And switch the Python extension to pre-release also then UV will do the heavy lifting with venvs.

    It so fast!

  7. eleanorjboyd commented on Jul 24, 2026

    @eleanorjboyd
    Member

    yes check out the envs ext! It is now installed by default for all users!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionality

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions