问题
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
回答1:
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
回答2:
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
回答3:
If you are running python 3.6 the use this command
sudo apt-get install python3.6-dev
来源:https://stackoverflow.com/questions/25675977/installing-pillow-error-setup-script-exited-with-error-command-x86-64-linux-g