How to update pip version installed by pyenv
10,340
You just need to upgrade the pip package with pip install --upgrade pip
.
EDIT: This was already answer here.
EDIT2: You can update pip on your python distribution directly if you can and use the virtualenv's flag ‘ --system-site-packages‘ to depend on the system package you have installed previously.
Author by
ulgens
Updated on August 09, 2022Comments
-
ulgens over 1 year
I'm using Python 3.6.5 with pyenv. pip 10 came out a while ago but pyenv is creating my new virtual environments with pip 9.0.3 and i have to update each one of them manually. It's annoying.
I tried to update pyenv and re-installing Python version (i was hoping it will come with newer pip version but it didn't.) but no success.
Should i wait for an update on pyenv side or am i missing something?
-
ulgens about 6 yearsThat's the problem i'm already asking, i don't want to update pip from inside of virtualenv manually, i want pyenv to install them with newest version.
-
TwistedSim about 6 yearsActually pyenv doesn't manage version of pip by default. If you create a virtualenv with virtualenv or pyenv-virtualenv, you end up with the default version of pip which is 9.0.3 at the moment (pypi.org/project/virtualenv).
-
ulgens about 6 yearsOh, that's the answer i was looking for. Thanks.
-
Jeffrey Goldberg over 2 yearsI found that I needed to run
python -m pip install -- upgrade pip
instead ofpip install -- upgrade pip
as I do have pyenv shim for pip. So I suppose that if I wanted pip outside of my PYENV, I would update with homebrew or macprots.