Open jarshwah opened 5 months ago
Workaround for those that are interested, using direnv:
if [ -f ".python-version" ] ; then
envname=$(cat .python-version)
VIRTUAL_ENV="$(pyenv root)/versions/$envname"
export VIRTUAL_ENV
fi
How about VIRTUAL_ENV="$(pyenv root)/versions/$(pyenv version-name)"
?
Would be closed by https://github.com/astral-sh/uv/pull/4032
uv
doesn't seem able to detect the virtual-environment created by pyenv-virtualenv.uv version and repro:
But it does detect the virtualenv when activating the shell: