5 ms·
Still no option to store virtual envs outside projects after a year https://github.com/astral-sh/uv/issues/1495 https://github.com/astral-sh/uv/issues/1495
by tandav 1y ago
Still no option to store virtual envs outside projects after a year
https://github.com/astral-sh/uv/issues/1495 https://github.com/astral-sh/uv/issues/1495
- sitic 1y agoThis 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 https://github.com/sitic/uv-virtualenvwrapper
- globular-toast 1y agoInspired by this I made a similar thing for direnv: https://github.com/georgek/dotfiles/blob/01fb53619adc7269824e9dabae5a1a62618a9d40/direnv/.direnvrc#L73 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.
- TaroEld 1y agoThe UV_PROJECT_ENVIRONMENT variable can be used as a workaround: https://docs.astral.sh/uv/concepts/projects/config/#project-environment-path https://docs.astral.sh/uv/concepts/projects/config/#project-...
- akx 1y ago`UV_PROJECT_ENVIRONMENT` works fine for that. That's what I use for my venv-managing Fish functions: https://gist.github.com/akx/c357bbda9facbe41f08747a2622795c4 https://gist.github.com/akx/c357bbda9facbe41f08747a2622795c4