简体   繁体   English

安装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

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.

相关问题 安装脚本退出并出现错误:命令“x86_64-linux-gnu-gcc”失败,退出状态为 1 - setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 PyXML Ubuntu 13.1,错误:安装脚本退出,错误:命令“ x86_64-linux-gnu-gcc”失败,退出状态为1 - PyXML Ubuntu 13.1, error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 错误:命令“x86_64-linux-gnu-gcc”在安装 pygsr、pyaudio 时失败,退出状态为 1 - error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 while installing pygsr,pyaudio GDAL 安装错误“错误:命令‘x86_64-linux-gnu-gcc’失败,退出状态为 1” - GDAL installation error "error: command 'x86_64-linux-gnu-gcc' failed with exit status 1" 在Google Colab笔记本中安装tsne:错误:命令'x86_64-linux-gnu-gcc'失败,退出状态为1 - Installing tsne in Google Colab notebook: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Oursql 安装:错误:命令“x86_64-linux-gnu-gcc”失败,退出状态为 1 - Oursql install : error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Ubuntu Cython 编译错误:命令“x86_64-linux-gnu-gcc”失败,退出状态为 1 - Ubuntu Cython compilation error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 如何修复错误:命令“x86_64-linux-gnu-gcc”失败,退出状态为 1 - How to fix error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 pip 安装 reportlab 错误:命令 'x86_64-linux-gnu-gcc' 失败,退出状态为 1 - pip install reportlab error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 lxml:错误:命令'x86_64-linux-gnu-gcc'失败,退出状态为1 - lxml: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM