Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update pip version installed by pyenv

Tags:

python

pip

pyenv

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?

like image 889
ulgens Avatar asked Apr 17 '18 01:04

ulgens


People also ask

How do I update pip version VS code?

go to command prompt. and use this command. python -m pip install -–upgrade pip.

How do I update Pyenv?

Usage. To update pyenv and plugins (including pyenv-update itself), just type pyenv update .

Can I update Python from pip?

Basically, pip comes with python itself. Therefore it carries no meaning for using pip itself to install or upgrade python.


1 Answers

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.

like image 177
TwistedSim Avatar answered Sep 25 '22 15:09

TwistedSim