Pyenv-virtualenv: Set the pipenv venv automatically

Created on 21 Feb 2019  路  1Comment  路  Source: pyenv/pyenv-virtualenv

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

Most helpful comment

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

>All comments

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
Was this page helpful?
0 / 5 - 0 ratings

Related issues

oblitum picture oblitum  路  11Comments

Insoleet picture Insoleet  路  3Comments

andymccurdy picture andymccurdy  路  9Comments

hubitor picture hubitor  路  9Comments

melentye picture melentye  路  7Comments