关于command 'gcc' failed with exit status 1 解决方法

Setup script exited with error: command 'gcc' failed with exit status 1

由于没有正确安装Python开发环境导致。

Debin/Ubuntu

  • Python2
    sudo apt-get install python-dev
  • Python3
    sudo apt-get install python3-dev
    可能需要libevent库
    sudo apt-get install libevent-dev
    最后更新下开发环境
    sudo apt-get groupinstall 'development tools'

Centos/Fedora

sudo yum install python-devel
sudo yum install libevent-devel
easy_install gevent
或者
pip install gevent
把环境更新下
sudo yum install groupinstall 'development tools'

 

 

参考链接:https://www.cnblogs.com/gerrydeng/p/7159021.html

posted @ 2020-06-30 10:08  泡泡茶壶i  阅读(801)  评论(0编辑  收藏  举报