安装happybase,thriftpy不成功
2017-02-14 17:57
295 查看
安装happybase的时候会先装thriftpy。安装thriftpy会碰到
thriftpy/transport/cybase.c:13:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/data/yuleke-match/env/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-2imhflbw/thriftpy/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-32m7931x-record/install-record.txt --single-version-externally-managed --compile --install-headers /data/yuleke-match/env/include/site/python3.4/thriftpy" failed with error code 1 in /tmp/pip-build-2imhflbw/thriftpy/
经过查找,在http://stackoverflow.com/questions/21530577/fatal-error-python-h-no-such-file-or-directory中找到方法。
For apt (ubuntu, debian...):
For yum (centos, redhat, fedora...):
这样之后就能成功安装了
thriftpy/transport/cybase.c:13:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/data/yuleke-match/env/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-2imhflbw/thriftpy/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-32m7931x-record/install-record.txt --single-version-externally-managed --compile --install-headers /data/yuleke-match/env/include/site/python3.4/thriftpy" failed with error code 1 in /tmp/pip-build-2imhflbw/thriftpy/
经过查找,在http://stackoverflow.com/questions/21530577/fatal-error-python-h-no-such-file-or-directory中找到方法。
For apt (ubuntu, debian...):
sudo apt-get install python-dev # for python2.x installs sudo apt-get install python3-dev # for python3.x installs
For yum (centos, redhat, fedora...):
sudo yum install python-devel
这样之后就能成功安装了
相关文章推荐
- HappyBase安装&Python操作HBase
- 为什么我的 sql server 2005 beta 2 安装不成功呢?
- 在RedHat Linux 7.3下成功安装Kylix 3.0
- MS SQL Server 2000安装不成功的原因
- 成功从硬盘安装了magiclinux1.2
- 终于成功安装上Live Communication Server2005并用Messenger5.1连接上了
- IBM RS6000 44P-170 安装suse 成功
- 在RedHat Fedora Core 2下成功安装 Mono 1.0笔记
- 用老主板带大硬盘安装成功
- cadence ic 在fedora安装(尚未成功)
- [转移]BugZilla 成功安装完成
- DotNetNuke3.0.4安装成功!!!
- 第一在Linux下安装mono成功一半.不是很爽,大伙都来看看吧.
- eclipse3.0.1+Lomboz for Eclipse 3.0.x+中文补丁的安装成功经验
- 庆祝一下! 64位linux安装成功!
- 在Jonas下安装OPencms成功
- (转)RedHatLinux AS3 U2 安装 oracle9204 成功 笔录!!!
- Eclipse 3.0 安装插件时不能成功安装的解决办法
- 纪念安装linux成功
- FreeBSD用ports安装Firefox不成功 + 解决办法!