-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Latest pip 8.1.2 fails to upgrade on Ubuntu 16.04 #3776
Comments
Can you re-test this and paste the full commands you ran and their output, and why you think you don't have pip 8.1.2? I just tried running this command locally, and I got:
So I got the same output, but pip was in fact upgraded to 8.1.2. (It's definitely a bug that it said "successfully installed pip-8.1.1" -- I have no idea what's up with that, someone who knows pip better than me might. And probably it should be considered a bug that after upgrading pip, pip complains about being an old version -- but this is just confusing, not actually a problem, what pip is saying is that the version of pip you're running is 8.1.1, not that the version of pip you just installed is 8.1.1.) |
Also, if I try using python 2.7's pip, like in the linked askubuntu question, I get:
So not only does that work, but it also avoids the weird output issues I saw with the xenial pip3. |
I think this is going to be because Ubuntu patches their pip to prevent it from modifying packages installed with apt. |
@njsmith: I get the "You are using pip version 8.1.1, however version 8.1.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command." message for pip for both Python 2 ( The issue here is I don't know if the bug with the erroneous warning messages lies with pip itself or with the Ubuntu patches for pip as suggested by @dstufft. |
Oh right, it installing into |
@dstufft |
Interesting... and you're still getting that "you're using 8.1.1 but 8.1.2 is available" message? |
@dstufft I only got that message on the first invocation of |
Ah- Ok then I think that's just a bug that I think we have open somewhere else, where upgrading sometimes doesn't indicate the newest version until after the processes has completely exited. |
@dstufft That makes sense to me, thanks! |
Same thing here. python -c "import pip; print(pip.version)" reports "8.1.2", yet I still get the error. Unless it's because the command I need to run (STATIC_DEPS=true sudo -H pip install lxml==3.6.0) is calling it with sudo? |
Just contributing to make some additional noise regarding this issue. The upgrade fails for me as well, additionally, uninstalling pip3 and reinstalling results in version 8.1.1, not 8.1.2. |
does |
Not working on ubuntu 16.04
|
It working:
|
admed |
Hi there! I had the same problem on Linux Mint 18, finally found the answer on pip's homepage! This method worked for me. Hope it helps! |
You might have multiple Python Versions installed. I'm running Ubuntu 16.04 and finally figured that I needed to upgrade the pip in both python 2.7 and 3. Since I run them side by side, I needed to specify pip3
|
same issue on 'Ubuntu 16.04.1 LTS'. but following commands helps:
now it's ok:
|
I was getting the same error of
|
I removed first pip3 with:
Then installed with: Instructions can be found here: |
Full process flow to install latest pip: (some steps may be redundant if you already have pip installed but no harm done)
|
This works for me in Python 2. |
This works for me too. Following the steps of @Dinh-Hung-Tu & @sc00ut |
|
thank you admen, it worked. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description:
Tried to upgrade pip 8.1.1 to 8.1.2 for Python 3.5, downloaded the wheel for pip 8.1.2, but still displays version of pip as 8.1.1. This happens regardless of if I remove cache or used the cached wheel. Many others are having a similar problem: http://askubuntu.com/questions/775942/latest-python-pip-with-u16-04
What I've run:
$ python3.5 -m pip install --upgrade pip
Collecting pip
Using cached pip-8.1.2-py2.py3-none-any.whl
Installing collected packages: pip
Successfully installed pip-8.1.1
You are using pip version 8.1.1, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
The text was updated successfully, but these errors were encountered: