
正文
Python3.6安装报错 configure: error: no acceptable C compiler found in $PATH
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
安装python的时候出现如下的错误:
[root@master ~]#./configure --prefix=/usr/local/python3.6checking build system type... i686-pc-linux-gnuchecking host system type... i686-pc-linux-gnuchecking for --enable-universalsdk... nochecking for --with-universal-archs... 32-bitchecking MACHDEP... linuxchecking for --without-gcc... nochecking for gcc... nochecking for cc... nochecking for cl.exe... noconfigure: error: in /usr/local/src/pythonSoft/Python-3.3.4':configure: error: no acceptable C compiler found in $PATHSee `config.log' for more details
由于本机缺少gcc编译环境
1、通过yum安装gcc编译环境: yum install -y gcc
2、本机没有安装yum功能,可下载gcc安装包:https://gcc.gnu.org/







