Daniel Slätt
Daniel Slätt

Reputation: 771

How to upgrade to Pip 10?

My Python has Pip 9.1 installed. Unfortunately, a package called Scapely has a bug and won't install. There's supposed to be a fix for Pip 10.0, but when I try to upgrade pip using "python -m pip install -U pip", but Python says "requirement already up-to-date" following this command.

Any way to install Pip 10.0 manually? Thanks!

Upvotes: 3

Views: 22083

Answers (5)

dinesh rajput
dinesh rajput

Reputation: 114

upgrade option is like below command.

pip install --upgrade 'pip==10'

Upvotes: 1

harshil9968
harshil9968

Reputation: 3244

Update :

Since the new version is available you can just do

pip install --upgrade pip

For a fresh install of pip 10:

MAC OS and LINUX

curl https://bootstrap.pypa.io/get-pip.py | sh

WINDOWS

Open this in browser and download using Ctrl+S.

Open this file using file manager.

Or in windows power shell or command line:

python get-pip.py

Previous Answer:

Download this master branch from github, or you can also clone the repository.

Once inside the folder, either cloned or unziped the downloaded file:

python setup.py install

Then to verify: pip -V or

pip --version

Upvotes: 6

Stefano M
Stefano M

Reputation: 4809

A Beta release of pip version 10 is on PyPI: you can just pip install --upgrade --pre pip

Upvotes: 3

hoefling
hoefling

Reputation: 66251

Until pip==10.0.0 is released, you can let pip upgrade itself to the latest development version from its git repository:

$ pip install --upgrade git+https://github.com/pypa/pip

This way you don't have to download pips sources yourself, although harshil9968's answer is also correct.

Once the new version is released, just do the usual

$ pip install --upgrade pip

Upvotes: 1

PapeK24
PapeK24

Reputation: 1126

try one of theese (or both) depending on which version of python / pip you use

sudo -H pip3 install --upgrade pip
sudo -H pip2 install --upgrade pip

Upvotes: -2

Related Questions