1. 程式人生 > >安裝jumpserver 前,python 依賴環境常見報錯yum

安裝jumpserver 前,python 依賴環境常見報錯yum

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

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