安装Pillow错误:安装脚本退出时出现错误:命令'x86_64-linux-gnu-gcc'失败,退出状态为1 [英] Installing Pillow error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

查看:117
本文介绍了安装Pillow错误:安装脚本退出时出现错误:命令'x86_64-linux-gnu-gcc'失败,退出状态为1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试安装Pillow 2.5.3
时,出现错误:命令'x86_64-linux-gnu-gcc'以退出状态1失败



下面是发生了什么的完整日志



我需要这个库作为另一个python项目的一部分。
我经历了许多解决方案,但没有人帮助我解决方案

你缺少Python头文件。在发行版的包管理器中安装 python-dev



等同于python 3.安装 python3-dev ,例如:
$ b $ pre $ sudo apt-get install python3-dev


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

解决方案

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

这篇关于安装Pillow错误:安装脚本退出时出现错误:命令'x86_64-linux-gnu-gcc'失败,退出状态为1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆