Message274097
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. |
|
Date |
User |
Action |
Args |
2016-09-01 05:44:52 | ncoghlan | set | recipients:
+ ncoghlan, ned.deily, petr.viktorin, dstufft, jayvdb |
2016-09-01 05:44:52 | ncoghlan | set | messageid: <1472708692.58.0.811240226499.issue27924@psf.upfronthosting.co.za> |
2016-09-01 05:44:52 | ncoghlan | link | issue27924 messages |
2016-09-01 05:44:52 | ncoghlan | create | |
|