0

I am trying to install Pillow for my Python (Version 2.7.12). However, I heard that PIL and Pillow cannot co-exist in the system. So I tried to uninstall PIL from my system with the following code

sudo pip uninstall pil

But it did not work and an error popped up

Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    from pip import main
ImportError: cannot import name main

Can I ask what that means? And how can I completely remove PIL in order for me to install Pillow.

Thank you so much for the help in advanced

Tommy

1 Answers1

0

According to this discussion on Github, it seems that it has been introduced a change in pip library that breaks it.

The suggested solution for the moment is to downgrade the version of pip to 9.0.3

pip install --user --upgrade pip==9.0.3
Danibix
  • 2,185