Error for pip install Pillow on Ubuntu virtualenv

后端 未结 9 777
别跟我提以往
别跟我提以往 2020-12-07 20:32

I have an ec2 instance and had Pillow 2.0 installed in my virtualenv initially. Somehow when I tried to upgrade it to Pillow 2.5, it failed with the following message. The e

9条回答
  •  太阳男子
    2020-12-07 21:09

    My case was slightly different as my ubuntu 15.04 was missing also libjpeg, so the installation failed each time. Apparently sometimes pillow can not find required library and the easiest way to fix it is to install the dev version and link it to the user libs. Edit: also works in ubuntu 16.04

    sudo apt-get install python-dev
    sudo apt-get install libjpeg8-dev
    sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib
    
    pip install pillow
    

    Partial solution found here

提交回复
热议问题