pyenv: pip: command not found pyenv: pip: command not found python python

pyenv: pip: command not found


I had the same error message. The problem was due to a failed installation of a python version, so pip wasn't found for this version. In fact, even python wasn't found.

example:

pyenv install 3.7.2 # this failed, but I did not realize it failed at firstpyenv versions | grep 3.7.2

3.7.2

pyenv local 3.7.2python --version

pyenv: python: command not found

So problem was not with pip itself, but a broken installation of a python version. Just make sure you succeed when you install a python version with pyenv.


I'm not sure if that solution matches the problem, but after installing pyenv, pyenv-virtualenv and selecting a python version, I had to run pip that way:

$ pyenv exec pip install


You need to install pip separately if you didn't install pyenv from the binaries provided by python.org

After installing the wanted python version, download and install pip :

wget https://bootstrap.pypa.io/get-pip.py(sudo) python ./get-pip.py​rm get-pip.py

Ref: https://pip.pypa.io/en/stable/installing/