linux问题-easy_install安装bpython时报错

如题报如下错误:(环境为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

 

posted @ 2015-10-20 19:15  超超xc  Views(908)  Comments(0Edit  收藏  举报
I suppose,were childrenonec.