Unable to upgrade pip
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
15
down vote
favorite
I am new to Linux and Ubuntu.
I was trying to upgrade pip but ran into this...
$ sudo pip install --upgrade pip
Cannot fetch index base URL https://pypi.python.org/simple/
Downloading/unpacking pip from https://pypi.python.org/packages/py2.py3/p/pip/pip-7.1.0-py2.py3-none-any.whl#md5=b108384a762825ec20345bb9b5b7209f
Downloading pip-7.1.0-py2.py3-none-any.whl (1.1MB): 1.1MB downloaded
Installing collected packages: pip
Found existing installation: pip 1.5.4
Not uninstalling pip at /usr/lib/python2.7/dist-packages, owned by OS
Successfully installed pip
Cleaning up...
Any idea why?
upgrade python
add a comment |Â
up vote
15
down vote
favorite
I am new to Linux and Ubuntu.
I was trying to upgrade pip but ran into this...
$ sudo pip install --upgrade pip
Cannot fetch index base URL https://pypi.python.org/simple/
Downloading/unpacking pip from https://pypi.python.org/packages/py2.py3/p/pip/pip-7.1.0-py2.py3-none-any.whl#md5=b108384a762825ec20345bb9b5b7209f
Downloading pip-7.1.0-py2.py3-none-any.whl (1.1MB): 1.1MB downloaded
Installing collected packages: pip
Found existing installation: pip 1.5.4
Not uninstalling pip at /usr/lib/python2.7/dist-packages, owned by OS
Successfully installed pip
Cleaning up...
Any idea why?
upgrade python
2
tryapt
i.e.sudo apt-get install python-pip
to upgradepip
â heemayl
Jul 5 '15 at 23:15
hmmm... says its the most up-to-date version... is this because apt-get and pip get their packages form different sources? (i.e. would that be a difference between apt-get and pypi?) 'python-pip is already the newest version.'
â Spencer Lee
Jul 6 '15 at 1:30
that means it is up to date...
â Tim
Jul 6 '15 at 10:32
1
except running: pip list --outdated pip returns the following: pip (Current: 1.5.4 Latest: 7.1.0) Could not find any downloads that satisfy the requirement python-apt Some externally hosted files were ignored (use --allow-external python-apt to allow).
â Spencer Lee
Jul 7 '15 at 4:13
add a comment |Â
up vote
15
down vote
favorite
up vote
15
down vote
favorite
I am new to Linux and Ubuntu.
I was trying to upgrade pip but ran into this...
$ sudo pip install --upgrade pip
Cannot fetch index base URL https://pypi.python.org/simple/
Downloading/unpacking pip from https://pypi.python.org/packages/py2.py3/p/pip/pip-7.1.0-py2.py3-none-any.whl#md5=b108384a762825ec20345bb9b5b7209f
Downloading pip-7.1.0-py2.py3-none-any.whl (1.1MB): 1.1MB downloaded
Installing collected packages: pip
Found existing installation: pip 1.5.4
Not uninstalling pip at /usr/lib/python2.7/dist-packages, owned by OS
Successfully installed pip
Cleaning up...
Any idea why?
upgrade python
I am new to Linux and Ubuntu.
I was trying to upgrade pip but ran into this...
$ sudo pip install --upgrade pip
Cannot fetch index base URL https://pypi.python.org/simple/
Downloading/unpacking pip from https://pypi.python.org/packages/py2.py3/p/pip/pip-7.1.0-py2.py3-none-any.whl#md5=b108384a762825ec20345bb9b5b7209f
Downloading pip-7.1.0-py2.py3-none-any.whl (1.1MB): 1.1MB downloaded
Installing collected packages: pip
Found existing installation: pip 1.5.4
Not uninstalling pip at /usr/lib/python2.7/dist-packages, owned by OS
Successfully installed pip
Cleaning up...
Any idea why?
upgrade python
upgrade python
edited Aug 29 '17 at 23:52
![](https://i.stack.imgur.com/8CW8e.png?s=32&g=1)
![](https://i.stack.imgur.com/8CW8e.png?s=32&g=1)
Zanna
48k13119228
48k13119228
asked Jul 5 '15 at 23:13
Spencer Lee
78114
78114
2
tryapt
i.e.sudo apt-get install python-pip
to upgradepip
â heemayl
Jul 5 '15 at 23:15
hmmm... says its the most up-to-date version... is this because apt-get and pip get their packages form different sources? (i.e. would that be a difference between apt-get and pypi?) 'python-pip is already the newest version.'
â Spencer Lee
Jul 6 '15 at 1:30
that means it is up to date...
â Tim
Jul 6 '15 at 10:32
1
except running: pip list --outdated pip returns the following: pip (Current: 1.5.4 Latest: 7.1.0) Could not find any downloads that satisfy the requirement python-apt Some externally hosted files were ignored (use --allow-external python-apt to allow).
â Spencer Lee
Jul 7 '15 at 4:13
add a comment |Â
2
tryapt
i.e.sudo apt-get install python-pip
to upgradepip
â heemayl
Jul 5 '15 at 23:15
hmmm... says its the most up-to-date version... is this because apt-get and pip get their packages form different sources? (i.e. would that be a difference between apt-get and pypi?) 'python-pip is already the newest version.'
â Spencer Lee
Jul 6 '15 at 1:30
that means it is up to date...
â Tim
Jul 6 '15 at 10:32
1
except running: pip list --outdated pip returns the following: pip (Current: 1.5.4 Latest: 7.1.0) Could not find any downloads that satisfy the requirement python-apt Some externally hosted files were ignored (use --allow-external python-apt to allow).
â Spencer Lee
Jul 7 '15 at 4:13
2
2
try
apt
i.e. sudo apt-get install python-pip
to upgrade pip
â heemayl
Jul 5 '15 at 23:15
try
apt
i.e. sudo apt-get install python-pip
to upgrade pip
â heemayl
Jul 5 '15 at 23:15
hmmm... says its the most up-to-date version... is this because apt-get and pip get their packages form different sources? (i.e. would that be a difference between apt-get and pypi?) 'python-pip is already the newest version.'
â Spencer Lee
Jul 6 '15 at 1:30
hmmm... says its the most up-to-date version... is this because apt-get and pip get their packages form different sources? (i.e. would that be a difference between apt-get and pypi?) 'python-pip is already the newest version.'
â Spencer Lee
Jul 6 '15 at 1:30
that means it is up to date...
â Tim
Jul 6 '15 at 10:32
that means it is up to date...
â Tim
Jul 6 '15 at 10:32
1
1
except running: pip list --outdated pip returns the following: pip (Current: 1.5.4 Latest: 7.1.0) Could not find any downloads that satisfy the requirement python-apt Some externally hosted files were ignored (use --allow-external python-apt to allow).
â Spencer Lee
Jul 7 '15 at 4:13
except running: pip list --outdated pip returns the following: pip (Current: 1.5.4 Latest: 7.1.0) Could not find any downloads that satisfy the requirement python-apt Some externally hosted files were ignored (use --allow-external python-apt to allow).
â Spencer Lee
Jul 7 '15 at 4:13
add a comment |Â
10 Answers
10
active
oldest
votes
up vote
1
down vote
accepted
The apt
system and PyPI
uses two different mechanisms.
In Ubuntu's repositories many modules of python
are available as packages, but they are not much in numbers as compared to PyPI (The Python Package Index). To remain consistent about upgrading a package you need to consider the method you have used initially used to install it.
So if you have installed a package (module) from PyPI
using pip
then you should used pip
to upgrade the package from PyPI
(including pip
itself). On the other hand if you have used apt
system to install a module (as package) you need to use apt
to upgrade that again.
In a nutshell, run the following to upgrade python-pip
to the latest version :
sudo apt-get install python-pip
i think i understand. thank you.
â Spencer Lee
Jul 7 '15 at 4:38
3
This doesn't answer the question. python-pip doesn't upgrade pip, it only installs a very old version of pip in such as way that pip cannot upgrade itself.
â Cerin
Feb 7 '17 at 14:18
@Cerin Did you read the answer thoroughly?python-pip
is the package from the (official) Universe repository whereaseasy_install
installs fromPyPI
. As always the official repositories do not not contain the latest package to keep the system stable (and dependencies resolved).
â heemayl
Feb 7 '17 at 16:31
4
@heemayl, OP asked how to upgrade pip and you effectively told them to install an old version of pip. The correct solution is to uninstall python-pip and install from PyPI. Installing python-pip does not upgrade pip.
â Cerin
Feb 7 '17 at 21:29
add a comment |Â
up vote
20
down vote
Try install it with easy_install
:
easy_install -U pip
1
Not sure if this answer is still valid? This post on Stack Overflow asked on "Why use pip over easy_install?", in which one of the answers noted that: "The only good reason that I know of to use easy_install in 2015 is the special case of using Apple's pre-installed Python versions with OS X 10.5-10.8."
â clearkimura
Dec 9 '15 at 8:53
1
Focus on question, the question is 'Unable to upgrade pip', and I suggest way upgrade via easy_install, it work in Dec 2015, ok?
â NamPNQ
Dec 9 '15 at 12:16
To downvoters, do explain why this answer was downvoted earlier? I managed to find a recent comment under this post, which is quoted here: " easy_install -U pip from ByteCommander suggestion worked for me. â Tampa Jun 1 at 12:23". Theeasy_install
method reportedly works for some users.
â clearkimura
Dec 10 '15 at 12:35
1
This worked for me (withsudo
). Previously,sudo apt-get install python-pip
was giving mepython-pip is already the newest version (8.1.1-2ubuntu0.4)
whereas 9.0.1 was available, but couldn't be installed bypip install --upgrade pip
(which left the version unchanged at 8.1.1). Aftereasy_install
the version was upgraded.
â Kurt Peek
Jan 12 '17 at 10:33
Although this works, this does replace system-managed files with the newerpip
version. A re-install of thepython-pip
package would replace the files again. Other code relying on the package version being present and correct could break (small but non-zero chance), andeasy_install
could add extra files that are not removed when in future upgradingpython-pip
to a newer version that may interfere and break things.
â Martijn Pieters
Jan 16 '17 at 11:29
 |Â
show 1 more comment
up vote
5
down vote
I had the same issue for a long time and figured out the solution today. When you install pip via python-pip, you download from the deprecated Linux server. You should download from the python server. To solve this, do the following:
sudo apt-get purge pip
sudo apt-get python-setuptools
sudo apt-get python-dev
sudo easy_install pip
pip install pip --upgrade
add a comment |Â
up vote
2
down vote
Actually, you can edit your 'pip' script:
from root:
$ which pip # -> prints 'pip' location
$ nano `which pip` # -> open with your editor, note the backticks!
replace the __requires__
with your latests pip version like:
__requires__ = 'pip==7.1.2'
than edit line with 'load_entry_point' call to:
load_entry_point(__requires__, 'console_scripts', 'pip')()
and:
$pip -V
pip 7.1.2 from /usr/local/lib/python2.7/dist-packages (python 2.7)
also, i have to update my setuptools package, to install some packages.
add a comment |Â
up vote
2
down vote
This is caused by a conflict between a version of pip provided by a system package, like python-pip
, and a version provided by PyPI through pip itself.
To fix this, simply remove python-pip
with sudo apt-get purge python-pip
.
If you had already used the old version of pip to install a newer version, this should leave the updated version in /usr/local/bin
. If not, you can install the most recent version of Pip from scratch with:
curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | sudo python2.7
add a comment |Â
up vote
1
down vote
Use this link to upgrade. Basically:
- Download the file
get-pip.py
- run
python get-pip.py
add a comment |Â
up vote
1
down vote
Try running sudo -H pip3 install --upgrade pip
to upgrade your pip3 (for Python 3).
Conversely, you can do sudo -H pip2 install --upgrade pip
to upgrade pip as well (for Python 2).
add a comment |Â
up vote
0
down vote
If python-pip
installed from apt repositories with sudo user - run sudo -H install --upgrade pip
, same for installing PIP modules .
Here the output from my console on 16.04
..... Successfully installed requests
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
:~$ pip install --upgrade pip
Collecting pip
Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
100% |âÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂ| 1.3MB 672kB/s
Installing collected packages: pip
Successfully installed pip-8.1.1
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
:~$ sudo -H pip install --upgrade pip
Collecting pip
Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
100% |âÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂ| 1.3MB 692kB/s
Installing collected packages: pip
Found existing installation: pip 8.1.1
Not uninstalling pip at /usr/lib/python2.7/dist-packages, outside environment /usr
Successfully installed pip-9.0.1
:~$
also see What is the -H flag for pip? https://stackoverflow.com/questions/28619686/what-is-the-h-flag-for-pip
add a comment |Â
up vote
0
down vote
I'm only a beginner so I'm not sure but probably is something related to the differences between python 2 and 3. I think that is not necessary to be a superuser but you can do it easily using pip3
instead of pip
also to upgrade pip
:pip3 install --upgrade pip
add a comment |Â
up vote
0
down vote
I ran into this problem when working on a remote machine I was ssh'd into. I had just installed python 3, and was unable to get pip to upgrade, even though I'd attempted to upgrade via both pip AND apt-get.
Logging out of the remote server and logging back in fixed it.
add a comment |Â
10 Answers
10
active
oldest
votes
10 Answers
10
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
The apt
system and PyPI
uses two different mechanisms.
In Ubuntu's repositories many modules of python
are available as packages, but they are not much in numbers as compared to PyPI (The Python Package Index). To remain consistent about upgrading a package you need to consider the method you have used initially used to install it.
So if you have installed a package (module) from PyPI
using pip
then you should used pip
to upgrade the package from PyPI
(including pip
itself). On the other hand if you have used apt
system to install a module (as package) you need to use apt
to upgrade that again.
In a nutshell, run the following to upgrade python-pip
to the latest version :
sudo apt-get install python-pip
i think i understand. thank you.
â Spencer Lee
Jul 7 '15 at 4:38
3
This doesn't answer the question. python-pip doesn't upgrade pip, it only installs a very old version of pip in such as way that pip cannot upgrade itself.
â Cerin
Feb 7 '17 at 14:18
@Cerin Did you read the answer thoroughly?python-pip
is the package from the (official) Universe repository whereaseasy_install
installs fromPyPI
. As always the official repositories do not not contain the latest package to keep the system stable (and dependencies resolved).
â heemayl
Feb 7 '17 at 16:31
4
@heemayl, OP asked how to upgrade pip and you effectively told them to install an old version of pip. The correct solution is to uninstall python-pip and install from PyPI. Installing python-pip does not upgrade pip.
â Cerin
Feb 7 '17 at 21:29
add a comment |Â
up vote
1
down vote
accepted
The apt
system and PyPI
uses two different mechanisms.
In Ubuntu's repositories many modules of python
are available as packages, but they are not much in numbers as compared to PyPI (The Python Package Index). To remain consistent about upgrading a package you need to consider the method you have used initially used to install it.
So if you have installed a package (module) from PyPI
using pip
then you should used pip
to upgrade the package from PyPI
(including pip
itself). On the other hand if you have used apt
system to install a module (as package) you need to use apt
to upgrade that again.
In a nutshell, run the following to upgrade python-pip
to the latest version :
sudo apt-get install python-pip
i think i understand. thank you.
â Spencer Lee
Jul 7 '15 at 4:38
3
This doesn't answer the question. python-pip doesn't upgrade pip, it only installs a very old version of pip in such as way that pip cannot upgrade itself.
â Cerin
Feb 7 '17 at 14:18
@Cerin Did you read the answer thoroughly?python-pip
is the package from the (official) Universe repository whereaseasy_install
installs fromPyPI
. As always the official repositories do not not contain the latest package to keep the system stable (and dependencies resolved).
â heemayl
Feb 7 '17 at 16:31
4
@heemayl, OP asked how to upgrade pip and you effectively told them to install an old version of pip. The correct solution is to uninstall python-pip and install from PyPI. Installing python-pip does not upgrade pip.
â Cerin
Feb 7 '17 at 21:29
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
The apt
system and PyPI
uses two different mechanisms.
In Ubuntu's repositories many modules of python
are available as packages, but they are not much in numbers as compared to PyPI (The Python Package Index). To remain consistent about upgrading a package you need to consider the method you have used initially used to install it.
So if you have installed a package (module) from PyPI
using pip
then you should used pip
to upgrade the package from PyPI
(including pip
itself). On the other hand if you have used apt
system to install a module (as package) you need to use apt
to upgrade that again.
In a nutshell, run the following to upgrade python-pip
to the latest version :
sudo apt-get install python-pip
The apt
system and PyPI
uses two different mechanisms.
In Ubuntu's repositories many modules of python
are available as packages, but they are not much in numbers as compared to PyPI (The Python Package Index). To remain consistent about upgrading a package you need to consider the method you have used initially used to install it.
So if you have installed a package (module) from PyPI
using pip
then you should used pip
to upgrade the package from PyPI
(including pip
itself). On the other hand if you have used apt
system to install a module (as package) you need to use apt
to upgrade that again.
In a nutshell, run the following to upgrade python-pip
to the latest version :
sudo apt-get install python-pip
answered Jul 6 '15 at 19:59
![](https://i.stack.imgur.com/8mGqv.gif?s=32&g=1)
![](https://i.stack.imgur.com/8mGqv.gif?s=32&g=1)
heemayl
64.1k8127204
64.1k8127204
i think i understand. thank you.
â Spencer Lee
Jul 7 '15 at 4:38
3
This doesn't answer the question. python-pip doesn't upgrade pip, it only installs a very old version of pip in such as way that pip cannot upgrade itself.
â Cerin
Feb 7 '17 at 14:18
@Cerin Did you read the answer thoroughly?python-pip
is the package from the (official) Universe repository whereaseasy_install
installs fromPyPI
. As always the official repositories do not not contain the latest package to keep the system stable (and dependencies resolved).
â heemayl
Feb 7 '17 at 16:31
4
@heemayl, OP asked how to upgrade pip and you effectively told them to install an old version of pip. The correct solution is to uninstall python-pip and install from PyPI. Installing python-pip does not upgrade pip.
â Cerin
Feb 7 '17 at 21:29
add a comment |Â
i think i understand. thank you.
â Spencer Lee
Jul 7 '15 at 4:38
3
This doesn't answer the question. python-pip doesn't upgrade pip, it only installs a very old version of pip in such as way that pip cannot upgrade itself.
â Cerin
Feb 7 '17 at 14:18
@Cerin Did you read the answer thoroughly?python-pip
is the package from the (official) Universe repository whereaseasy_install
installs fromPyPI
. As always the official repositories do not not contain the latest package to keep the system stable (and dependencies resolved).
â heemayl
Feb 7 '17 at 16:31
4
@heemayl, OP asked how to upgrade pip and you effectively told them to install an old version of pip. The correct solution is to uninstall python-pip and install from PyPI. Installing python-pip does not upgrade pip.
â Cerin
Feb 7 '17 at 21:29
i think i understand. thank you.
â Spencer Lee
Jul 7 '15 at 4:38
i think i understand. thank you.
â Spencer Lee
Jul 7 '15 at 4:38
3
3
This doesn't answer the question. python-pip doesn't upgrade pip, it only installs a very old version of pip in such as way that pip cannot upgrade itself.
â Cerin
Feb 7 '17 at 14:18
This doesn't answer the question. python-pip doesn't upgrade pip, it only installs a very old version of pip in such as way that pip cannot upgrade itself.
â Cerin
Feb 7 '17 at 14:18
@Cerin Did you read the answer thoroughly?
python-pip
is the package from the (official) Universe repository whereas easy_install
installs from PyPI
. As always the official repositories do not not contain the latest package to keep the system stable (and dependencies resolved).â heemayl
Feb 7 '17 at 16:31
@Cerin Did you read the answer thoroughly?
python-pip
is the package from the (official) Universe repository whereas easy_install
installs from PyPI
. As always the official repositories do not not contain the latest package to keep the system stable (and dependencies resolved).â heemayl
Feb 7 '17 at 16:31
4
4
@heemayl, OP asked how to upgrade pip and you effectively told them to install an old version of pip. The correct solution is to uninstall python-pip and install from PyPI. Installing python-pip does not upgrade pip.
â Cerin
Feb 7 '17 at 21:29
@heemayl, OP asked how to upgrade pip and you effectively told them to install an old version of pip. The correct solution is to uninstall python-pip and install from PyPI. Installing python-pip does not upgrade pip.
â Cerin
Feb 7 '17 at 21:29
add a comment |Â
up vote
20
down vote
Try install it with easy_install
:
easy_install -U pip
1
Not sure if this answer is still valid? This post on Stack Overflow asked on "Why use pip over easy_install?", in which one of the answers noted that: "The only good reason that I know of to use easy_install in 2015 is the special case of using Apple's pre-installed Python versions with OS X 10.5-10.8."
â clearkimura
Dec 9 '15 at 8:53
1
Focus on question, the question is 'Unable to upgrade pip', and I suggest way upgrade via easy_install, it work in Dec 2015, ok?
â NamPNQ
Dec 9 '15 at 12:16
To downvoters, do explain why this answer was downvoted earlier? I managed to find a recent comment under this post, which is quoted here: " easy_install -U pip from ByteCommander suggestion worked for me. â Tampa Jun 1 at 12:23". Theeasy_install
method reportedly works for some users.
â clearkimura
Dec 10 '15 at 12:35
1
This worked for me (withsudo
). Previously,sudo apt-get install python-pip
was giving mepython-pip is already the newest version (8.1.1-2ubuntu0.4)
whereas 9.0.1 was available, but couldn't be installed bypip install --upgrade pip
(which left the version unchanged at 8.1.1). Aftereasy_install
the version was upgraded.
â Kurt Peek
Jan 12 '17 at 10:33
Although this works, this does replace system-managed files with the newerpip
version. A re-install of thepython-pip
package would replace the files again. Other code relying on the package version being present and correct could break (small but non-zero chance), andeasy_install
could add extra files that are not removed when in future upgradingpython-pip
to a newer version that may interfere and break things.
â Martijn Pieters
Jan 16 '17 at 11:29
 |Â
show 1 more comment
up vote
20
down vote
Try install it with easy_install
:
easy_install -U pip
1
Not sure if this answer is still valid? This post on Stack Overflow asked on "Why use pip over easy_install?", in which one of the answers noted that: "The only good reason that I know of to use easy_install in 2015 is the special case of using Apple's pre-installed Python versions with OS X 10.5-10.8."
â clearkimura
Dec 9 '15 at 8:53
1
Focus on question, the question is 'Unable to upgrade pip', and I suggest way upgrade via easy_install, it work in Dec 2015, ok?
â NamPNQ
Dec 9 '15 at 12:16
To downvoters, do explain why this answer was downvoted earlier? I managed to find a recent comment under this post, which is quoted here: " easy_install -U pip from ByteCommander suggestion worked for me. â Tampa Jun 1 at 12:23". Theeasy_install
method reportedly works for some users.
â clearkimura
Dec 10 '15 at 12:35
1
This worked for me (withsudo
). Previously,sudo apt-get install python-pip
was giving mepython-pip is already the newest version (8.1.1-2ubuntu0.4)
whereas 9.0.1 was available, but couldn't be installed bypip install --upgrade pip
(which left the version unchanged at 8.1.1). Aftereasy_install
the version was upgraded.
â Kurt Peek
Jan 12 '17 at 10:33
Although this works, this does replace system-managed files with the newerpip
version. A re-install of thepython-pip
package would replace the files again. Other code relying on the package version being present and correct could break (small but non-zero chance), andeasy_install
could add extra files that are not removed when in future upgradingpython-pip
to a newer version that may interfere and break things.
â Martijn Pieters
Jan 16 '17 at 11:29
 |Â
show 1 more comment
up vote
20
down vote
up vote
20
down vote
Try install it with easy_install
:
easy_install -U pip
Try install it with easy_install
:
easy_install -U pip
edited Dec 10 '15 at 8:58
![](https://i.stack.imgur.com/KX04R.jpg?s=32&g=1)
![](https://i.stack.imgur.com/KX04R.jpg?s=32&g=1)
Jens Erat
4,02972031
4,02972031
answered Dec 9 '15 at 7:33
NamPNQ
31125
31125
1
Not sure if this answer is still valid? This post on Stack Overflow asked on "Why use pip over easy_install?", in which one of the answers noted that: "The only good reason that I know of to use easy_install in 2015 is the special case of using Apple's pre-installed Python versions with OS X 10.5-10.8."
â clearkimura
Dec 9 '15 at 8:53
1
Focus on question, the question is 'Unable to upgrade pip', and I suggest way upgrade via easy_install, it work in Dec 2015, ok?
â NamPNQ
Dec 9 '15 at 12:16
To downvoters, do explain why this answer was downvoted earlier? I managed to find a recent comment under this post, which is quoted here: " easy_install -U pip from ByteCommander suggestion worked for me. â Tampa Jun 1 at 12:23". Theeasy_install
method reportedly works for some users.
â clearkimura
Dec 10 '15 at 12:35
1
This worked for me (withsudo
). Previously,sudo apt-get install python-pip
was giving mepython-pip is already the newest version (8.1.1-2ubuntu0.4)
whereas 9.0.1 was available, but couldn't be installed bypip install --upgrade pip
(which left the version unchanged at 8.1.1). Aftereasy_install
the version was upgraded.
â Kurt Peek
Jan 12 '17 at 10:33
Although this works, this does replace system-managed files with the newerpip
version. A re-install of thepython-pip
package would replace the files again. Other code relying on the package version being present and correct could break (small but non-zero chance), andeasy_install
could add extra files that are not removed when in future upgradingpython-pip
to a newer version that may interfere and break things.
â Martijn Pieters
Jan 16 '17 at 11:29
 |Â
show 1 more comment
1
Not sure if this answer is still valid? This post on Stack Overflow asked on "Why use pip over easy_install?", in which one of the answers noted that: "The only good reason that I know of to use easy_install in 2015 is the special case of using Apple's pre-installed Python versions with OS X 10.5-10.8."
â clearkimura
Dec 9 '15 at 8:53
1
Focus on question, the question is 'Unable to upgrade pip', and I suggest way upgrade via easy_install, it work in Dec 2015, ok?
â NamPNQ
Dec 9 '15 at 12:16
To downvoters, do explain why this answer was downvoted earlier? I managed to find a recent comment under this post, which is quoted here: " easy_install -U pip from ByteCommander suggestion worked for me. â Tampa Jun 1 at 12:23". Theeasy_install
method reportedly works for some users.
â clearkimura
Dec 10 '15 at 12:35
1
This worked for me (withsudo
). Previously,sudo apt-get install python-pip
was giving mepython-pip is already the newest version (8.1.1-2ubuntu0.4)
whereas 9.0.1 was available, but couldn't be installed bypip install --upgrade pip
(which left the version unchanged at 8.1.1). Aftereasy_install
the version was upgraded.
â Kurt Peek
Jan 12 '17 at 10:33
Although this works, this does replace system-managed files with the newerpip
version. A re-install of thepython-pip
package would replace the files again. Other code relying on the package version being present and correct could break (small but non-zero chance), andeasy_install
could add extra files that are not removed when in future upgradingpython-pip
to a newer version that may interfere and break things.
â Martijn Pieters
Jan 16 '17 at 11:29
1
1
Not sure if this answer is still valid? This post on Stack Overflow asked on "Why use pip over easy_install?", in which one of the answers noted that: "The only good reason that I know of to use easy_install in 2015 is the special case of using Apple's pre-installed Python versions with OS X 10.5-10.8."
â clearkimura
Dec 9 '15 at 8:53
Not sure if this answer is still valid? This post on Stack Overflow asked on "Why use pip over easy_install?", in which one of the answers noted that: "The only good reason that I know of to use easy_install in 2015 is the special case of using Apple's pre-installed Python versions with OS X 10.5-10.8."
â clearkimura
Dec 9 '15 at 8:53
1
1
Focus on question, the question is 'Unable to upgrade pip', and I suggest way upgrade via easy_install, it work in Dec 2015, ok?
â NamPNQ
Dec 9 '15 at 12:16
Focus on question, the question is 'Unable to upgrade pip', and I suggest way upgrade via easy_install, it work in Dec 2015, ok?
â NamPNQ
Dec 9 '15 at 12:16
To downvoters, do explain why this answer was downvoted earlier? I managed to find a recent comment under this post, which is quoted here: " easy_install -U pip from ByteCommander suggestion worked for me. â Tampa Jun 1 at 12:23". The
easy_install
method reportedly works for some users.â clearkimura
Dec 10 '15 at 12:35
To downvoters, do explain why this answer was downvoted earlier? I managed to find a recent comment under this post, which is quoted here: " easy_install -U pip from ByteCommander suggestion worked for me. â Tampa Jun 1 at 12:23". The
easy_install
method reportedly works for some users.â clearkimura
Dec 10 '15 at 12:35
1
1
This worked for me (with
sudo
). Previously, sudo apt-get install python-pip
was giving me python-pip is already the newest version (8.1.1-2ubuntu0.4)
whereas 9.0.1 was available, but couldn't be installed by pip install --upgrade pip
(which left the version unchanged at 8.1.1). After easy_install
the version was upgraded.â Kurt Peek
Jan 12 '17 at 10:33
This worked for me (with
sudo
). Previously, sudo apt-get install python-pip
was giving me python-pip is already the newest version (8.1.1-2ubuntu0.4)
whereas 9.0.1 was available, but couldn't be installed by pip install --upgrade pip
(which left the version unchanged at 8.1.1). After easy_install
the version was upgraded.â Kurt Peek
Jan 12 '17 at 10:33
Although this works, this does replace system-managed files with the newer
pip
version. A re-install of the python-pip
package would replace the files again. Other code relying on the package version being present and correct could break (small but non-zero chance), and easy_install
could add extra files that are not removed when in future upgrading python-pip
to a newer version that may interfere and break things.â Martijn Pieters
Jan 16 '17 at 11:29
Although this works, this does replace system-managed files with the newer
pip
version. A re-install of the python-pip
package would replace the files again. Other code relying on the package version being present and correct could break (small but non-zero chance), and easy_install
could add extra files that are not removed when in future upgrading python-pip
to a newer version that may interfere and break things.â Martijn Pieters
Jan 16 '17 at 11:29
 |Â
show 1 more comment
up vote
5
down vote
I had the same issue for a long time and figured out the solution today. When you install pip via python-pip, you download from the deprecated Linux server. You should download from the python server. To solve this, do the following:
sudo apt-get purge pip
sudo apt-get python-setuptools
sudo apt-get python-dev
sudo easy_install pip
pip install pip --upgrade
add a comment |Â
up vote
5
down vote
I had the same issue for a long time and figured out the solution today. When you install pip via python-pip, you download from the deprecated Linux server. You should download from the python server. To solve this, do the following:
sudo apt-get purge pip
sudo apt-get python-setuptools
sudo apt-get python-dev
sudo easy_install pip
pip install pip --upgrade
add a comment |Â
up vote
5
down vote
up vote
5
down vote
I had the same issue for a long time and figured out the solution today. When you install pip via python-pip, you download from the deprecated Linux server. You should download from the python server. To solve this, do the following:
sudo apt-get purge pip
sudo apt-get python-setuptools
sudo apt-get python-dev
sudo easy_install pip
pip install pip --upgrade
I had the same issue for a long time and figured out the solution today. When you install pip via python-pip, you download from the deprecated Linux server. You should download from the python server. To solve this, do the following:
sudo apt-get purge pip
sudo apt-get python-setuptools
sudo apt-get python-dev
sudo easy_install pip
pip install pip --upgrade
edited Aug 29 '17 at 23:50
![](https://i.stack.imgur.com/8CW8e.png?s=32&g=1)
![](https://i.stack.imgur.com/8CW8e.png?s=32&g=1)
Zanna
48k13119228
48k13119228
answered Aug 29 '17 at 19:00
user730924
5111
5111
add a comment |Â
add a comment |Â
up vote
2
down vote
Actually, you can edit your 'pip' script:
from root:
$ which pip # -> prints 'pip' location
$ nano `which pip` # -> open with your editor, note the backticks!
replace the __requires__
with your latests pip version like:
__requires__ = 'pip==7.1.2'
than edit line with 'load_entry_point' call to:
load_entry_point(__requires__, 'console_scripts', 'pip')()
and:
$pip -V
pip 7.1.2 from /usr/local/lib/python2.7/dist-packages (python 2.7)
also, i have to update my setuptools package, to install some packages.
add a comment |Â
up vote
2
down vote
Actually, you can edit your 'pip' script:
from root:
$ which pip # -> prints 'pip' location
$ nano `which pip` # -> open with your editor, note the backticks!
replace the __requires__
with your latests pip version like:
__requires__ = 'pip==7.1.2'
than edit line with 'load_entry_point' call to:
load_entry_point(__requires__, 'console_scripts', 'pip')()
and:
$pip -V
pip 7.1.2 from /usr/local/lib/python2.7/dist-packages (python 2.7)
also, i have to update my setuptools package, to install some packages.
add a comment |Â
up vote
2
down vote
up vote
2
down vote
Actually, you can edit your 'pip' script:
from root:
$ which pip # -> prints 'pip' location
$ nano `which pip` # -> open with your editor, note the backticks!
replace the __requires__
with your latests pip version like:
__requires__ = 'pip==7.1.2'
than edit line with 'load_entry_point' call to:
load_entry_point(__requires__, 'console_scripts', 'pip')()
and:
$pip -V
pip 7.1.2 from /usr/local/lib/python2.7/dist-packages (python 2.7)
also, i have to update my setuptools package, to install some packages.
Actually, you can edit your 'pip' script:
from root:
$ which pip # -> prints 'pip' location
$ nano `which pip` # -> open with your editor, note the backticks!
replace the __requires__
with your latests pip version like:
__requires__ = 'pip==7.1.2'
than edit line with 'load_entry_point' call to:
load_entry_point(__requires__, 'console_scripts', 'pip')()
and:
$pip -V
pip 7.1.2 from /usr/local/lib/python2.7/dist-packages (python 2.7)
also, i have to update my setuptools package, to install some packages.
answered Dec 7 '15 at 16:17
s0rg
212
212
add a comment |Â
add a comment |Â
up vote
2
down vote
This is caused by a conflict between a version of pip provided by a system package, like python-pip
, and a version provided by PyPI through pip itself.
To fix this, simply remove python-pip
with sudo apt-get purge python-pip
.
If you had already used the old version of pip to install a newer version, this should leave the updated version in /usr/local/bin
. If not, you can install the most recent version of Pip from scratch with:
curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | sudo python2.7
add a comment |Â
up vote
2
down vote
This is caused by a conflict between a version of pip provided by a system package, like python-pip
, and a version provided by PyPI through pip itself.
To fix this, simply remove python-pip
with sudo apt-get purge python-pip
.
If you had already used the old version of pip to install a newer version, this should leave the updated version in /usr/local/bin
. If not, you can install the most recent version of Pip from scratch with:
curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | sudo python2.7
add a comment |Â
up vote
2
down vote
up vote
2
down vote
This is caused by a conflict between a version of pip provided by a system package, like python-pip
, and a version provided by PyPI through pip itself.
To fix this, simply remove python-pip
with sudo apt-get purge python-pip
.
If you had already used the old version of pip to install a newer version, this should leave the updated version in /usr/local/bin
. If not, you can install the most recent version of Pip from scratch with:
curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | sudo python2.7
This is caused by a conflict between a version of pip provided by a system package, like python-pip
, and a version provided by PyPI through pip itself.
To fix this, simply remove python-pip
with sudo apt-get purge python-pip
.
If you had already used the old version of pip to install a newer version, this should leave the updated version in /usr/local/bin
. If not, you can install the most recent version of Pip from scratch with:
curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | sudo python2.7
answered Feb 7 '17 at 14:21
Cerin
2,14583972
2,14583972
add a comment |Â
add a comment |Â
up vote
1
down vote
Use this link to upgrade. Basically:
- Download the file
get-pip.py
- run
python get-pip.py
add a comment |Â
up vote
1
down vote
Use this link to upgrade. Basically:
- Download the file
get-pip.py
- run
python get-pip.py
add a comment |Â
up vote
1
down vote
up vote
1
down vote
Use this link to upgrade. Basically:
- Download the file
get-pip.py
- run
python get-pip.py
Use this link to upgrade. Basically:
- Download the file
get-pip.py
- run
python get-pip.py
edited Aug 26 '16 at 19:22
user308164
answered Aug 26 '16 at 17:23
Manish
111
111
add a comment |Â
add a comment |Â
up vote
1
down vote
Try running sudo -H pip3 install --upgrade pip
to upgrade your pip3 (for Python 3).
Conversely, you can do sudo -H pip2 install --upgrade pip
to upgrade pip as well (for Python 2).
add a comment |Â
up vote
1
down vote
Try running sudo -H pip3 install --upgrade pip
to upgrade your pip3 (for Python 3).
Conversely, you can do sudo -H pip2 install --upgrade pip
to upgrade pip as well (for Python 2).
add a comment |Â
up vote
1
down vote
up vote
1
down vote
Try running sudo -H pip3 install --upgrade pip
to upgrade your pip3 (for Python 3).
Conversely, you can do sudo -H pip2 install --upgrade pip
to upgrade pip as well (for Python 2).
Try running sudo -H pip3 install --upgrade pip
to upgrade your pip3 (for Python 3).
Conversely, you can do sudo -H pip2 install --upgrade pip
to upgrade pip as well (for Python 2).
answered Jul 6 '17 at 4:53
BhushanDhamale
164
164
add a comment |Â
add a comment |Â
up vote
0
down vote
If python-pip
installed from apt repositories with sudo user - run sudo -H install --upgrade pip
, same for installing PIP modules .
Here the output from my console on 16.04
..... Successfully installed requests
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
:~$ pip install --upgrade pip
Collecting pip
Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
100% |âÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂ| 1.3MB 672kB/s
Installing collected packages: pip
Successfully installed pip-8.1.1
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
:~$ sudo -H pip install --upgrade pip
Collecting pip
Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
100% |âÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂ| 1.3MB 692kB/s
Installing collected packages: pip
Found existing installation: pip 8.1.1
Not uninstalling pip at /usr/lib/python2.7/dist-packages, outside environment /usr
Successfully installed pip-9.0.1
:~$
also see What is the -H flag for pip? https://stackoverflow.com/questions/28619686/what-is-the-h-flag-for-pip
add a comment |Â
up vote
0
down vote
If python-pip
installed from apt repositories with sudo user - run sudo -H install --upgrade pip
, same for installing PIP modules .
Here the output from my console on 16.04
..... Successfully installed requests
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
:~$ pip install --upgrade pip
Collecting pip
Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
100% |âÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂ| 1.3MB 672kB/s
Installing collected packages: pip
Successfully installed pip-8.1.1
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
:~$ sudo -H pip install --upgrade pip
Collecting pip
Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
100% |âÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂ| 1.3MB 692kB/s
Installing collected packages: pip
Found existing installation: pip 8.1.1
Not uninstalling pip at /usr/lib/python2.7/dist-packages, outside environment /usr
Successfully installed pip-9.0.1
:~$
also see What is the -H flag for pip? https://stackoverflow.com/questions/28619686/what-is-the-h-flag-for-pip
add a comment |Â
up vote
0
down vote
up vote
0
down vote
If python-pip
installed from apt repositories with sudo user - run sudo -H install --upgrade pip
, same for installing PIP modules .
Here the output from my console on 16.04
..... Successfully installed requests
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
:~$ pip install --upgrade pip
Collecting pip
Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
100% |âÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂ| 1.3MB 672kB/s
Installing collected packages: pip
Successfully installed pip-8.1.1
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
:~$ sudo -H pip install --upgrade pip
Collecting pip
Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
100% |âÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂ| 1.3MB 692kB/s
Installing collected packages: pip
Found existing installation: pip 8.1.1
Not uninstalling pip at /usr/lib/python2.7/dist-packages, outside environment /usr
Successfully installed pip-9.0.1
:~$
also see What is the -H flag for pip? https://stackoverflow.com/questions/28619686/what-is-the-h-flag-for-pip
If python-pip
installed from apt repositories with sudo user - run sudo -H install --upgrade pip
, same for installing PIP modules .
Here the output from my console on 16.04
..... Successfully installed requests
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
:~$ pip install --upgrade pip
Collecting pip
Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
100% |âÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂ| 1.3MB 672kB/s
Installing collected packages: pip
Successfully installed pip-8.1.1
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
:~$ sudo -H pip install --upgrade pip
Collecting pip
Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
100% |âÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂ| 1.3MB 692kB/s
Installing collected packages: pip
Found existing installation: pip 8.1.1
Not uninstalling pip at /usr/lib/python2.7/dist-packages, outside environment /usr
Successfully installed pip-9.0.1
:~$
also see What is the -H flag for pip? https://stackoverflow.com/questions/28619686/what-is-the-h-flag-for-pip
edited May 23 '17 at 12:39
Communityâ¦
1
1
answered Apr 30 '17 at 14:46
user115639
add a comment |Â
add a comment |Â
up vote
0
down vote
I'm only a beginner so I'm not sure but probably is something related to the differences between python 2 and 3. I think that is not necessary to be a superuser but you can do it easily using pip3
instead of pip
also to upgrade pip
:pip3 install --upgrade pip
add a comment |Â
up vote
0
down vote
I'm only a beginner so I'm not sure but probably is something related to the differences between python 2 and 3. I think that is not necessary to be a superuser but you can do it easily using pip3
instead of pip
also to upgrade pip
:pip3 install --upgrade pip
add a comment |Â
up vote
0
down vote
up vote
0
down vote
I'm only a beginner so I'm not sure but probably is something related to the differences between python 2 and 3. I think that is not necessary to be a superuser but you can do it easily using pip3
instead of pip
also to upgrade pip
:pip3 install --upgrade pip
I'm only a beginner so I'm not sure but probably is something related to the differences between python 2 and 3. I think that is not necessary to be a superuser but you can do it easily using pip3
instead of pip
also to upgrade pip
:pip3 install --upgrade pip
answered Jun 3 '17 at 8:24
NBee
11
11
add a comment |Â
add a comment |Â
up vote
0
down vote
I ran into this problem when working on a remote machine I was ssh'd into. I had just installed python 3, and was unable to get pip to upgrade, even though I'd attempted to upgrade via both pip AND apt-get.
Logging out of the remote server and logging back in fixed it.
add a comment |Â
up vote
0
down vote
I ran into this problem when working on a remote machine I was ssh'd into. I had just installed python 3, and was unable to get pip to upgrade, even though I'd attempted to upgrade via both pip AND apt-get.
Logging out of the remote server and logging back in fixed it.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
I ran into this problem when working on a remote machine I was ssh'd into. I had just installed python 3, and was unable to get pip to upgrade, even though I'd attempted to upgrade via both pip AND apt-get.
Logging out of the remote server and logging back in fixed it.
I ran into this problem when working on a remote machine I was ssh'd into. I had just installed python 3, and was unable to get pip to upgrade, even though I'd attempted to upgrade via both pip AND apt-get.
Logging out of the remote server and logging back in fixed it.
answered Nov 20 '17 at 19:07
![](https://i.stack.imgur.com/MZMvl.jpg?s=32&g=1)
![](https://i.stack.imgur.com/MZMvl.jpg?s=32&g=1)
Teal Hobson-Lowther
1
1
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f644911%2funable-to-upgrade-pip%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
2
try
apt
i.e.sudo apt-get install python-pip
to upgradepip
â heemayl
Jul 5 '15 at 23:15
hmmm... says its the most up-to-date version... is this because apt-get and pip get their packages form different sources? (i.e. would that be a difference between apt-get and pypi?) 'python-pip is already the newest version.'
â Spencer Lee
Jul 6 '15 at 1:30
that means it is up to date...
â Tim
Jul 6 '15 at 10:32
1
except running: pip list --outdated pip returns the following: pip (Current: 1.5.4 Latest: 7.1.0) Could not find any downloads that satisfy the requirement python-apt Some externally hosted files were ignored (use --allow-external python-apt to allow).
â Spencer Lee
Jul 7 '15 at 4:13