Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Pillow error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

While i try to install Pillow 2.5.3 I am getting an error : command 'x86_64-linux-gnu-gcc' failed with exit status 1

Here is the complete log of what happened

I need this library as a part of another python project. I have gone through many solutions but none helped me

like image 565
Alfie Avatar asked Oct 20 '25 23:10

Alfie


2 Answers

You are missing Python headers. Install python-dev from your distribution's package manager.

Equally for python 3. Install python3-dev, example:

sudo apt-get install python3-dev
like image 72
Burhan Khalid Avatar answered Oct 23 '25 13:10

Burhan Khalid


I have tried python-dev package but not worked for me. Then i have tried below code work like charm

sudo apt-get install build-essential libssl-dev libffi-dev python-dev
like image 35
Hardik Gajjar Avatar answered Oct 23 '25 11:10

Hardik Gajjar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!