关于command 'gcc' failed with exit status 1 解决方法
Posted zhukaijian
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了关于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
以上是关于关于command 'gcc' failed with exit status 1 解决方法的主要内容,如果未能解决你的问题,请参考以下文章
error: command 'gcc' failed with exit status 1
centos error: command 'gcc' failed with exit status 1
centos error: command 'gcc' failed with exit status 1 错误
centos error: command 'gcc' failed with exit status 1
python安装模块的时候报错error: command 'gcc' failed with exit status 1