Error installing Pillow on ubuntu 14.04

后端 未结 5 1364
栀梦
栀梦 2021-02-01 12:51

I\'m trying to install Pillow on Ubuntu 14.04 using this command:

pip install Pillow

but the installation fails with this error:



        
5条回答
  •  时光说笑
    2021-02-01 13:28

    Make sure Python-development packages are installed, if not then install it using the following commands :

    For Ubuntu

    sudo apt-get install python3-dev python3-setuptools
    

    For Fedora

    sudo dnf install python-devel
    

    After installing the development packages install the following :

    For Ubuntu

    sudo apt-get install libtiff5-dev libjpeg8-dev zlib1g-dev \
    libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk
    

    For Fedora

    sudo dnf install libtiff-devel libjpeg-devel libzip-devel freetype-devel \
    lcms2-devel libwebp-devel tcl-devel tk-devel
    

提交回复
热议问题