[205]python3.6.8安装报错configure: error: no acceptable C compiler found in $PATH

在Ubuntu下安装python报错如下:

[root@master ~]#./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编译环境。

apt-get install gcc

使用上述命令安装gcc

你可能感兴趣的:(Linux)