pip upgrade fails - says "owned by OS"
See original GitHub issuepip install --upgrade six
Downloading/unpacking six from https://pypi.python.org/packages/3.3/s/six/six-1.9.0-py2.py3-none-any.whl#md5=9ac7e129a80f72d6fc1f0216f6e9627b
Downloading six-1.9.0-py2.py3-none-any.whl
Installing collected packages: six
Found existing installation: six 1.5.2
Not uninstalling six at /usr/lib/python2.7/dist-packages, owned by OS
Successfully installed six
Cleaning up...
===========================================
pip 1.5.4 from /usr/lib/python2.7/dist-packages (python 2.7)
===========================================
cat lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.2 LTS"
Issue Analytics
- State:
- Created 8 years ago
- Comments:20 (5 by maintainers)
Top Results From Across the Web
pip upgrade issue using python -m pip install - Stack Overflow
This is likely an issue with the pip installation. You can fix it using the following steps: Uninstall the current pip: python -m...
Read more >Error while upgrading pip ERROR Could not install packages ...
Hey Folks, I received the following warning message: WARNING: You are using pip version 19.1.1, however version 19.2.3 is available.
Read more >Upgrading Python pip uninstalls old version but doesn't install ...
Try this: First figure out the location for the Python pip current folder in explorer, copy it. If you fail to locate the...
Read more >Using Python's pip to Manage Your Projects' Dependencies
Select your operating system below and run ensurepip accordingly: Windows; Linux + macOS. C:\> python -m ensurepip --upgrade.
Read more >python - Unable to upgrade pip - Ask Ubuntu
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...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

TLDR;
$ sudo apt-get remove python-pipor,pip install --ignore-installed sixI don’t think this is a bug.This might clear the confusion: http://askubuntu.com/questions/644911/unable-to-upgrade-pip.
This is due to the fact that
sixwas installed viaaptrather thanpip.$ sudo apt-get remove python-pipCompletely solves problem for me.