question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pip upgrade fails - says "owned by OS"

See original GitHub issue
pip 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:closed
  • Created 8 years ago
  • Comments:20 (5 by maintainers)

github_iconTop GitHub Comments

21reactions
sahilshekhawatcommented, Aug 14, 2017

TLDR;

  • You can remove previous installation via $ sudo apt-get remove python-pip or,
  • You can simply force the installation via pip install --ignore-installed six

I don’t think this is a bug.This might clear the confusion: http://askubuntu.com/questions/644911/unable-to-upgrade-pip.

Theapt system and PyPI uses two different mechanisms.

This is due to the fact that six was installed via apt rather than pip.

10reactions
Egor3fcommented, Oct 9, 2016

$ sudo apt-get remove python-pip Completely solves problem for me.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found