microsoft / vscode-python

Python extension for Visual Studio Code
https://aka.ms/pvsc-marketplace
MIT License
4.25k stars 1.15k forks source link

Create virtual environment using astral-sh/uv #23666

Open mscheltienne opened 3 weeks ago

mscheltienne commented 3 weeks ago

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
github-actions[bot] commented 3 weeks ago

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.

mscheltienne commented 3 weeks ago

@hoechenberger @vferat you might be interested by this one :)