zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    一对一关联
    一对多关联
    软删除
    分层控制器
    系统的助手函数
    tp5命令行基础介绍
    PHP 开启跨域
    生成数据库模型文件
    REST API 安全设计指南
    jquery-Ajax请求用例码
  • 原文地址:https://www.cnblogs.com/xccnblogs/p/4895840.html
Copyright © 2011-2022 走看看