我正在try 使用sudo pip install lxml在CentOS上安装lxml软件包,它在最后抛出了这个错误:

错误:

错误: command 'gcc' failed with exit status 1

---------------------------------------

Command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-root/lxml/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-PjviBq-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip-build-root/lxml
Storing complete log in /root/.pip/pip.log

[hg@user-centos-1 ~]$ 错误: command 'gcc' failed with exit status 1
bash: 错误:: command not found

推荐答案

是否安装了gcc?

sudo yum install gcc

Linux相关问答推荐

使用sed或awk映射自定义和任意函数

C++17/Linux:信号未解锁单独线程中被阻止的网络套接字调用

AddressSaniizer随机抛出没有任何解释的SIGSEGV

在新环境中使用Unicode范围的sed表达式有问题

Flutter 构建错误:';DART:JS_interop';在此平台上不可用

删除 csv 列中的不匹配值

在 bash 中解析变量

树莓派拒绝连接到瓶子服务器

根据其他列的值创建一个新列

如何使用 gcc 编译为程序集

查看 linux 上的多核或多 CPU 利用率

模拟器在内核映像文件中找不到Linux 版本字符串

如何在不包括可用空间的情况下创建光盘(sd 卡)的 .IMG 映像?

如何告诉 valgrind 对Forking 进程进行 memcheck?

何时使用管道与何时使用共享内存

以原子方式移动目录

Anaconda:禁用提示更改

以 qsub 开头的 shell 脚本的参数

如何在redhat linux上安装maven

如何在 docker 容器中运行 cron 作业(job)