pyenv-virtualenv icon indicating copy to clipboard operation
pyenv-virtualenv copied to clipboard

Set the pipenv venv automatically

Open bryant1410 opened this issue 6 years ago • 1 comments

Apart from the fact that pipenv supports pyenv to install missing Python versions (#981), I think it should be cool if pyenv-virtualenv automatically calls pipenv shell if there's a Pipfile (or activates its environment).

The handling of the paths and the shell is not a responsibility for pipenv, so I think pyenv-virtualenv should do it.

After pyenv/pyenv#1020

bryant1410 avatar Feb 21 '19 00:02 bryant1410

As a workaround, one can create a symlink to the pipenv virtualenv like this:

ln -s ../../.local/share/virtualenvs/project-EN26V0ef ~/.pyenv/versions/project-EN26V0ef

And then just set it:

pyenv local project-EN26V0ef

bryant1410 avatar Mar 02 '19 03:03 bryant1410