Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can't uninstall package with pip

I have installed pillow package, and uninstall attempt with sudo pip uninstall pillow leads to this message:

Not uninstalling Pillow at /usr/lib/python2.7/dist-packages, owned by OS

Manual uninstall doesn't work, because pip writes down installed packages somewhere, successfuly blocking me from installing the package again.

like image 986
jligeza Avatar asked Oct 31 '22 20:10

jligeza


2 Answers

This python library is important to keep Linux Mint Cinnamon running. It could be removed with sudo apt-get remove python-pil (not pip), but it would most likely break the operating system.

like image 187
jligeza Avatar answered Nov 13 '22 02:11

jligeza


This should fix the problem, as it fixed mine on Ubuntu 14.x install pip (even if it is already installed), securely download get-pip.py from here https://pip.pypa.io/en/stable/installing/ Then run the following:

sudo python get-pip.py

like image 25
Manish Verma Avatar answered Nov 13 '22 01:11

Manish Verma