Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ask pyenv whether pip exists if installed (sorin-ionescu#1848)
Pyenv will install shims for commands that exist in any interpreter, even if it is not the current one. This means that a command may technically exist, but when executed will tell the user to try a different interpreter. The original check for pip in the Python module can fail for this reason, in particular on Ubuntu 20.04. This change checks with pyenv whether pip really exists in the current interpreter to work around this problem and fixes a bug in pip command detection.
- Loading branch information