Unable to Uninstall Program : Own by OS
I was trying to uninstall program using pip uninstall South
and it give me following error
Not uninstalling South at /usr/lib/python2.7/dist-packages, owned by OS
I'm in production machine and unable to fix this issue. What would be the soultion for this.
pip - 1.5.4, ununtu - 14.04
Solution 1:
I solved the problem with the following command:
sudo apt-get remove python-virtualenv
Ubuntu 14.04 LTS
Solution 2:
The files are present in /usr/lib/python2.7/dist-packages
, therefore uninstall with sudo
rights.
sudo pip uninstall South
Solution 3:
I solved the issue by running:
sudo rm -rf /usr/lib/python2.7/dist-packages/six-1.5.2.egg-info
(I found the command on this GitHub issue).
I was facing a similar error on Kubuntu 14.04 LTS x64:
f@f-Aurora-R4:~/ta/hw4/code$ sudo pip uninstall scipy
Not uninstalling scipy at /usr/lib/python2.7/dist-packages, owned by OS
f@f-Aurora-R4:~/ta/hw4/code$ Not uninstalling scipy at /usr/lib/python2.7/dist-packages, owned by OS