error: command ‘gcc’ failed with exit status 1

 

error: command ‘gcc’ failed with exit status 1 的解决办法

用pip安装软件或者编译python模块的时候提示:error: command ‘gcc’ failed with exit status 1

easy_install也提示一样的错误:error: Setup script exited with error: command ‘gcc’ failed with exit status 1

一般是缺少python-dev包
apt-get install python-dev或yum install python-devel这样就行了

 

posted @ 2016-07-28 22:57  一叶扁舟YE  阅读(206)  评论(0编辑  收藏  举报