码迷,mamicode.com
首页 > 编程语言 > 详细

linux问题-easy_install安装bpython时报错

时间:2015-10-20 21:02:40      阅读:594      评论:0      收藏:0      [点我收藏+]

标签:

如题报如下错误:(环境为CentOS7)

In file included from greenlet.c:5:0:
greenlet.h:8:20: fatal error: Python.h: No such file or directory
 #include <Python.h>
                    ^
compilation terminated.
error: Setup script exited with error: command ‘gcc‘ failed with exit status 1

原来是需要安装gcc中python-devel

[root@localhost ~]# yum install gcc python-devel

最后问题解决:

[root@localhost ~]# easy_install bpython
Searching for bpython
Best match: bpython 0.14.2
Processing bpython-0.14.2-py2.7.egg
bpython 0.14.2 is already the active version in easy-install.pth
Installing bpython-urwid script to /usr/bin
Installing bpython-curses script to /usr/bin
Installing bpdb script to /usr/bin
Installing bpython script to /usr/bin
...
...
g-dist-tmp-pRSqJN
zip_safe flag not set; analyzing archive contents...
Adding blessings 1.6 to easy-install.pth file

Installed /usr/lib/python2.7/site-packages/blessings-1.6-py2.7.egg
Finished processing dependencies for bpython

 

linux问题-easy_install安装bpython时报错

标签:

原文地址:http://www.cnblogs.com/xccnblogs/p/4895840.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!