-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pipenv not finding pyenv versions with PYENV_HOME set #3123
Comments
I am also experiencing the same issue with:
Specifying the version explicitly with pipenv solved my issue
|
This is fixed in master, closing for now |
@techalchemy Is there a PR or commit we could reference? |
I met a similar problem but then I found this FAQ which solved my problem. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue description
Previously we could use a version of python installed via pyenv simply by setting the PYENV_HOME environment variable.
I started noticing this morning that builds were failing because pipenv was using the wrong version:
It is then running inside python2 (and crashing as such).
The version is successfully installed and can be found using the shims.
Expected result
Pipenv should find the version installed by pyenv without any additional environment parameters
Actual result
Pipenv did not find the pyenv installed with the PYENV_ROOT environment variable set.
We were able to work around the issue by adding pyenv to PATH explicitly:
This was not previously required, however, and the documentation still claims that PYENV_ROOT is all that is needed.
Steps to replicate
export PYENV_ROOT="~/.pyenv"
${PYENV_ROOT}/bin/pyenv update && ${PYENV_ROOT}/bin/pyenv install 3.7.0
Notice that it warns that 3.7.0 was not found and will use the system python instead.
The text was updated successfully, but these errors were encountered: