Closed lantrix closed 4 years ago
If you just remove the tilde from the quotes the shell will correctly handle its expansion for you.
Ah so it's literally my misunderstanding of the bash expansion :-(
I did try this and it worked as well:
$ export PIPENV_PYTHON="$HOME/.pyenv/shims/python"
But yeah it makes sense now it's expanding $HOME
due to the double quotes.
Running latest Pipenv:
In debugging, walked through the doco on getting Pipenv to recognise Pyenv version https://pipenv.kennethreitz.org/en/latest/diagnose/#pipenv-does-not-respect-pyenvs-global-and-local-python-versions
Issue description
Had set
PIPENV_PYTHON
to my pyenv shim, but Pipenv won't detect it.export PIPENV_PYTHON='~/.pyenv/shims/python'
Expected result
Pipenv spawns a shell within the virtualenv
Actual result
Pipenv complains
~/.pyenv/shims/python is not a python version
Even though it is.
Output of run:
Steps to replicate
No Pipfile. Setup a new shell in an empty dir
$ pipenv --support
Pipenv version: `'2018.11.26'` Pipenv location: `'/usr/local/Cellar/pipenv/2018.11.26_2/libexec/lib/python3.7/site-packages/pipenv'` Python location: `'/usr/local/Cellar/pipenv/2018.11.26_2/libexec/bin/python3.7'` Python installations found: