pip install scrpy 报错: command 'gcc' failed with exit status 1
报错如下:
copying src/twisted/words/xish/xpathparser.g -> build/lib.linux-x86_64-2.7/twisted/words/xish
running build_ext
building 'twisted.test.raiser' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
creating build/temp.linux-x86_64-2.7/src/twisted
creating build/temp.linux-x86_64-2.7/src/twisted/test
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c src/twisted/test/raiser.c -o build/temp.linux-x86_64-2.7/src/twisted/test/raiser.o
src/twisted/test/raiser.c:4:20: fatal error: Python.h: No such file or directory#include "Python.h"^
compilation terminated.
error: command 'gcc' failed with exit status 1----------------------------------------
Command “/root/.virtualenvs/env1/bin/python2 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-E6hTSG/Twisted/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-0tSQqb-record/install-record.txt –single-version-externally-managed –compile –install-headers /root/.virtualenvs/env1/include/site/python2.7/Twisted” failed with error code 1 in /tmp/pip-build-E6hTSG/Twisted/
问题原因:没有安装python-devel包
执行yum install python-devel 即可。
注意:1、如果找不到安装包,可以安装epel yum 源头:
yum install epel-release
2、如果目标Python版本是Python3则要安装对应的python3-devel
pip install scrpy 报错: command 'gcc' failed with exit status 1相关推荐
- pip 安装 mysqlclient 报错 Command errored out with exit status 1
安装mysqlclient报错: ERROR: Command errored out with exit status 1: 'd:\cs\csruanjiananzhuang\python\pyt ...
- 安装kerberos报错 error: command 'gcc' failed with exit status 1
pip install kerberos 报错:error: command 'gcc' failed with exit status 1 安装环境工具 yum install gcc libffi ...
- 【吭】centos安装mysql报错OSError: mysql_config not found/error: command ‘gcc‘ failed with exit status 1
问题: OSError: mysql_config not found 解决:yum install mysql-devel 问题:error: command 'gcc' failed wit ...
- 安装MySQL-python报错 error: command 'gcc' failed with exit status 1解决方法
错误如: _mysql.c:2331: error: '_mysql_ConnectionObject' has no member named 'open' _mysql.c:2338: error ...
- 安装oracle gcc版本,安装cx_Oracle时报错:error: command 'gcc' failed with exit status 1
安装cx_Oracle时报错:error: command 'gcc' failed with exit status 1 发布时间:2020-06-19 21:27:36 来源:51CTO 阅读:1 ...
- python mysql gcc_MySQL-python “error: command 'gcc' failed with exit status 1”错误
安装MySQL-python-1.2.3c1出现"error: command 'gcc' failed with exit status 1"错误 具体报错信息如下: _mysq ...
- 【Linux学习笔记】解决:error: command ‘gcc‘ failed with exit status 1
报错: error: command 'gcc' failed with exit status 1 原因:缺少gcc,openssl-devel openssl-devel包是第三方软件开发时使用的 ...
- pycuda installation error: command 'gcc' failed with exit status 1
原文:python采坑之路 Setup script exited with error: command 'gcc' failed with exit status 1 伴随出现"cuda ...
- error: command 'gcc' failed with exit status 1
使用 pip install scrapy 安装 scrapy 时,提示error: command 'gcc' failed with exit status 1 解决方法: yum -y in ...
最新文章
- 国内首款研发自动化产品PingCode Flow发布
- cmake 编译选项 add_compile_options CMAKE_CXX_FLAGS 区别
- InnoDB与MyISAM等存储引擎对比
- GitHub for Windows使用教程(一)安装配置
- Java基础之线程池
- Luogu P1115 最大子段和(dp 贪心)
- 移动端 H5 分屏页面适配问题--设计稿比例与设备宽高比例不同
- 【网络安全面试题】——文件目录穿越实现特权文件读取
- 微软高管谈微软远程办公思考与实践,值得每个企业看看
- FFmpeg学习(9)—— 调整播放速度
- 网站并发cpu占用率_来,控制一下 goroutine 的并发数量
- Google Earth Engine(GEE)——使用在线的世界矢量边界作为研究区(国家和洲际),如何调用?
- php公众号模板在哪,微信公众号模板哪里找?公众号如何套用模板?
- MeGUI中文版x64版本使用说明
- python图表导入word_使用python matplotlib 画图导入到word中如何保证分辨率
- UI设计规范-全文篇
- APP 的开发费用标准是什么?
- python爬取链家新房_Python爬虫实战:爬取链家网二手房数据
- Qt中操作SQLite数据库
- KEIL设置程序起始地址无效解决方法,STM32 IAP程序起始地址
热门文章
- 智能家居中语音识别算法研究_语音识别研究获进展
- 的run代码_小心使用 Task.Run 续篇
- linux 运行长后内存就满了,关于Linux 内存的使用,你确定真的理解吗?
- OSPF邻接关系的建立步骤
- MySQL 创建触发器
- arm linux sms,基于arm处理器的手机短消息加密系统 encryption system for sms based on arm.pdf...
- android 4.0系统,全新Android 4.0系统_手机Android频道-中关村在线
- ajax获取get请求,get请求
- php查询MySQL结果转化为数组_PHP如何将SQL查询结果转为多维数组,并按查询行输出...
- vue 获取url地址的参数_Vue之vuerouter的使用