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

匿名 (未验证) 提交于 2019-12-03 09:02:45

问题:

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



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!