←back to thread

741 points chirau | 1 comments | | HN request time: 0.211s | source
Show context
tandav ◴[] No.44358534[source]
Still no option to store virtual envs outside projects after a year

https://github.com/astral-sh/uv/issues/1495

replies(3): >>44358905 #>>44359150 #>>44363655 #
sitic ◴[] No.44358905[source]
This is the most important missing feature to me as well.

I've written a lightweight replacement script to manage named central virtual envs using the same command syntax as virtualenvwrapper. Supports tab completion for zsh and bash: https://github.com/sitic/uv-virtualenvwrapper

replies(1): >>44359796 #
1. globular-toast ◴[] No.44359796[source]
Inspired by this I made a similar thing for direnv: https://github.com/georgek/dotfiles/blob/01fb53619adc7269824...

A problem I have now, though, is when I I jump to def in my editor it no longer knows which venv to load because it's outside of the project. This somehow used to work with virtualenwrapper but I'm not sure how.