简体   繁体   English

Python pip无法安装zbarlight:错误:命令'gcc'失败,退出状态为1

[英]Python pip cannot install zbarlight: error: command 'gcc' failed with exit status 1

First of all I installed Python 3.5.1: 首先,我安装了Python 3.5.1:

yum -y install zbar gcc gcc-c++ kernel-devel
./configure --enable-shared --prefix=/usr/local LDFLAGS="-Wl,--rpath=/usr/local/lib"
make && make install

Tried to install zbarlight pypi package but failed: 试图安装zbarlight pypi软件包,但失败了:

    src/zbarlight/_zbarlight.c:137: error: ‘ZBAR_QRCODE’ undeclared (first use in this function)
    src/zbarlight/_zbarlight.c:138: error: ‘ZBAR_CODE128’ undeclared (first use in this function)
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/local/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ur77y560/zbarlight/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-hoalto9f-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-ur77y560/zbarlight/

How do I fix that? 我该如何解决? I tried pip3.5 -v but doesn't show any more meaningful error. 我尝试了pip3.5 -v,但未显示任何更有意义的错误。

不得不安装

yum install zbar-devel

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 “Pip install”导致“错误:命令‘gcc’失败,退出状态为 1” - “Pip install” causing “error: command 'gcc' failed with exit status 1” pip install pyhs2错误:命令“ gcc”失败,退出状态为1 - pip install pyhs2 error: command 'gcc' failed with exit status 1 通过 pip 错误(macos)安装瓶颈错误:瓶颈的构建轮失败; 错误:命令“gcc”失败,退出状态为 1 - install bottleneck by pip error (macos) ERROR: Failed building wheel for bottleneck; error: command 'gcc' failed with exit status 1 pip安装MySQL-python在ubuntu 14.04上失败,错误:命令'x86_64-linux-gnu-gcc'失败,退出状态为1 - pip install MySQL-python fails on ubuntu 14.04, error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 pip install 在 mac 上产生以下错误:error: command 'gcc' failed with exit status 1 - pip install produces the following error on mac: error: command '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 无法在 Linux 中使用 pip 安装 Pillow(错误:命令“gcc”失败,退出状态为 1) - Unable to install Pillow with pip in Linux (error: command 'gcc' failed with exit status 1) 无法安装python模块:命令'/ usr / bin / llvm-gcc'失败,退出状态为1 - Cannot install python module: command '/usr/bin/llvm-gcc' failed with exit status 1 无法为 python 3.8.0 安装 pyobjc-core MacO(命令“gcc”失败,退出状态为 1) - Cannot install pyobjc-core MacOs for python 3.8.0 (command 'gcc' failed with exit status 1) 尝试安装 OpenDR 时出现错误(命令“gcc”失败,退出状态为 1) - Error (command 'gcc' failed with exit status 1) when trying to install OpenDR
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM