Desinstale o PIL pré-instalado

3

Eu gostaria de instalar o Pillow, mas de acordo com a documentação do Pillow, eu devo remover o PIL primeiro, que parece ter vindo pré-instalado no Ubuntu 13.10.

Qual é a melhor maneira de fazer isso?

    
por Garrett 27.02.2014 / 07:18

2 respostas

5

A maneira mais fácil de desinstalar pil é usar pip :

sudo pip uninstall pil

e depois instalar o travesseiro usando pip:

sudo pip install pillow

(veja aqui para instalar o pip)

    
por jobin 27.02.2014 / 07:30
1

Tente o seguinte:

Remover completamente PIL / travesseiro (2.7 e 3.5):

$ sudo -H pip uninstall pillow
-> Successfully uninstalled Pillow-3.1.2
$ sudo -H pip3 uninstall pillow
-> Cannot uninstall requirement pillow, not installed

Remova completamente o pip & amp; pip3:

$ which pip
/usr/local/bin/pip

$ /usr/local/bin/pip uninstall pip
$ sudo apt-get remove python-pip 

Remover ovo (de easy_install):

Instalar pip & amp; pip3:

$ sudo apt-get install python-pip
$ sudo apt-get install python3-pip

$ sudo easy_install pip     <- Installs to different directory (egg)
$ sudo easy_install pip3    <- Installs to different directory (egg)

Instale o travesseiro (2,7 e 3,5):

sudo -H pip3 install pillow
-> Installed Pillow-4.1.1-cp27-cp27mu-manylinux1_x86_64.whl
sudo -H pip install pillow
-> Requirement already satisfied

$ sudo easy_install Pillow
Searching for Pillow
Best match: Pillow 4.1.1
Adding Pillow 4.1.1 to easy-install.pth file

Using /usr/local/lib/python2.7/dist-packages
Processing dependencies for Pillow
Finished processing dependencies for Pillow

$ sudo pip3 install Pillow
Requirement already satisfied: Pillow in ./.local/lib/python2.7/site-packages
    
por Antz411 27.06.2017 / 09:25

Tags