Error installing Pillow
Question:
I’m trying to install Pillow for Python and i run this command on the terminal
sudo pip install Pillow
and i get this error
clang: error: no such file or directory: 'build/temp.macosx-10.10-intel-2.7/_imagingtk.o'
clang: error: no such file or directory: 'build/temp.macosx-10.10-intel-2.7/Tk/tkImaging.o'
error: command 'cc' failed with exit status 1
Any solutions for this? i tried looking in stack overflow only similar errors but not the same one
Answers:
This might be the same as this bug in Pillow 2.5.0.
It’s been fixed, to be released soon in 2.5.1.
To test the dev version:
sudo pip install git+https://github.com/python-pillow/Pillow.git
Or install version 2.4.0:
sudo pip install pillow==2.4.0
Edit: Pillow 2.5.1 has now been released so you can just do:
sudo pip install pillow
Try running this command:
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install pillow
(You may find additional possible answers at this similar question: Installing Pillow/PIL on Mavericks)
First: Install python-dev
apt-get install python-dev
After: install PILLOW
pip install pillow
$ sudo easy_install pip==20.3.4
$ sudo apt-get build-dep pillow
$ sudo pip2 install pillow
Successfully installed pillow-6.2.2
This solution was tested on:
Distributor ID: Ubuntu
Description: Ubuntu 16.04.7 LTS
Release: 16.04
Codename: xenial.
It was run on 32bit Chromenotebook
If you’re on macOS, you should: brew install libtiff libjpeg webp littlecms
I’m trying to install Pillow for Python and i run this command on the terminal
sudo pip install Pillow
and i get this error
clang: error: no such file or directory: 'build/temp.macosx-10.10-intel-2.7/_imagingtk.o'
clang: error: no such file or directory: 'build/temp.macosx-10.10-intel-2.7/Tk/tkImaging.o'
error: command 'cc' failed with exit status 1
Any solutions for this? i tried looking in stack overflow only similar errors but not the same one
This might be the same as this bug in Pillow 2.5.0.
It’s been fixed, to be released soon in 2.5.1.
To test the dev version:
sudo pip install git+https://github.com/python-pillow/Pillow.git
Or install version 2.4.0:
sudo pip install pillow==2.4.0
Edit: Pillow 2.5.1 has now been released so you can just do:
sudo pip install pillow
Try running this command:
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install pillow
(You may find additional possible answers at this similar question: Installing Pillow/PIL on Mavericks)
First: Install python-dev
apt-get install python-dev
After: install PILLOW
pip install pillow
$ sudo easy_install pip==20.3.4
$ sudo apt-get build-dep pillow
$ sudo pip2 install pillow
Successfully installed pillow-6.2.2
This solution was tested on:
Distributor ID: Ubuntu
Description: Ubuntu 16.04.7 LTS
Release: 16.04
Codename: xenial.
It was run on 32bit Chromenotebook
If you’re on macOS, you should: brew install libtiff libjpeg webp littlecms