Skip to content

Conversation

@frostming
Copy link
Contributor

@frostming frostming commented Jun 28, 2019

Fixes #3819

The Fix

Iterate over all possible python executables, instead of using which("python", allow_global=True). This is to keep consistent with what which_pip does when system=True.

Pipenv is usually installed as an isolated application. By this method, sys.executable, which is the path of the isolated python interpreter, won't be preferred in the first place.

@frostming frostming changed the title Iterate all possible python paths Find the python interpreter for pipenv check --system. Jun 28, 2019
@frostming frostming merged commit 4c00352 into master Jun 28, 2019
@frostming frostming deleted the bugfix/3818 branch June 28, 2019 07:53
@thehesiod
Copy link

dang that was quick ! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pipenv check --system finds wrong python ver yielding JSONDecodeError

3 participants