[英]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 当我尝试安装Pillow 2.5.3时,我收到一个错误:命令'x86_64-linux-gnu-gcc'失败,退出状态为1
Here is the complete log of what happened 这是发生的事情的完整日志
I need this library as a part of another python project. 我需要这个库作为另一个python项目的一部分。 I have gone through many solutions but none helped me
我经历了很多解决方案,但没有人帮助我
You are missing Python headers. 您缺少Python标头。 Install
python-dev
from your distribution's package manager. 从您的发行版的包管理器安装
python-dev
。
Equally for python 3. Install python3-dev
, example: 同样适用于python 3.安装
python3-dev
,例如:
sudo apt-get install python3-dev
I have tried python-dev
package but not worked for me. 我试过
python-dev
包但不适合我。 Then i have tried below code work like charm 然后我尝试下面的代码工作像魅力
sudo apt-get install build-essential libssl-dev libffi-dev python-dev
If you are running python 3.6 the use this command 如果您正在运行python 3.6,请使用此命令
sudo apt-get install python3.6-dev
sudo apt-get install python3.6-dev
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.