This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients dstufft, jayvdb, ncoghlan, ned.deily, petr.viktorin
Date 2016-09-01.05:44:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1472708692.58.0.811240226499.issue27924@psf.upfronthosting.co.za>
In-reply-to
Content
Yeah, this is a known problem with pip where if you run it with sudo, it will happily uninstall system managed files from the system Python.

To fix your system (if you haven't already):

    $ sudo dnf reinstall python2-pip

(Anyone that accidentally uninstalls one of DNF's dependencies is in for a world of pain, but fortunately for this case pip doesn't fall into that category)

For the actual "pip currently happily uninstalls distro packages when run with sudo" problem, https://mail.python.org/pipermail/distutils-sig/2016-January/028080.html is the most recent discussion of that situation.

So we have a basic concept in place for how to make "sudo pip uninstall" less dangerous, it just requires coordination between PyPA updates to pip and downstream distro packaging policies to get us there.
History
Date User Action Args
2016-09-01 05:44:52ncoghlansetrecipients: + ncoghlan, ned.deily, petr.viktorin, dstufft, jayvdb
2016-09-01 05:44:52ncoghlansetmessageid: <1472708692.58.0.811240226499.issue27924@psf.upfronthosting.co.za>
2016-09-01 05:44:52ncoghlanlinkissue27924 messages
2016-09-01 05:44:52ncoghlancreate