Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for uv global instantiation #7898

Open
krstp opened this issue Oct 3, 2024 · 1 comment
Open

Allow for uv global instantiation #7898

krstp opened this issue Oct 3, 2024 · 1 comment

Comments

@krstp
Copy link

krstp commented Oct 3, 2024

I would like to see uv recognized for global virtual environments in a similar way to how pyenv works. Instead of focusing solely on in-project folder development, allow for global env instantiation.

In theory, this task should be accomplished by creating all virtual environments via:

uv venv ~/.venvs/my_project_env

To activate the environment:

source ~/.venvs/my_project_env/bin/activate

Alternatively, uv could add the following function to .bashrc/.zshrc:

function uvactivate() {
    source ~/.venvs/$1/bin/activate
}

Then users could activate an environment like this:

uvactivate my_project_env

@zanieb
Copy link
Member

zanieb commented Oct 3, 2024

Related

It seems like this is doable today with some small wrappers around uv, I'm not sure we'll add first-class support for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants