1、安装python的时候出现如下的错误 no acceptable C compiler found in $PATH
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
1、通过yum安装gcc编译环境:yum install -y gcc
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/
2、zipimport.ZipImportError: can’t decompress data,
原因:缺少zlib 的相关工具包
1、打开终端,输入一下命令安装zlib相关依赖包:yum -y install zlib*
3、错误:git command not found
yum install -y git