Python3.6安装报错 configure: error: no acceptable C compiler found in $PATH

Posted zhouxinfei

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Python3.6安装报错 configure: error: no acceptable C compiler found in $PATH相关的知识,希望对你有一定的参考价值。

安装python的时候出现如下的错误:

[[email protected] ~]#./configure --prefix=/usr/local/python3.6
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux
checking for --without-gcc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in /usr/local/src/pythonSoft/Python-3.3.4:
configure: error: no acceptable C compiler found in $PATH
See `config.log for more details

 

由于本机缺少gcc编译环境
1、通过yum安装gcc编译环境: yum install -y gcc 
2、本机没有安装yum功能,可下载gcc安装包:https://gcc.gnu.org/



以上是关于Python3.6安装报错 configure: error: no acceptable C compiler found in $PATH的主要内容,如果未能解决你的问题,请参考以下文章

python3.6安装scrapy报错

安装python3.6后使用pip报错

Linux下安装Python3.6.4步骤

Python3.6.2安装pip install paramike模块报错

python3.6 安装cv2 报错 解决

selenium+python自动化85-python3.6上SendKeys报错用PyUserInput取代