執行./configure時報錯,configure: error: no acceptable C compiler found in $PATH
在安裝python3.7,配置編譯路徑時會遇到以下問題:
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
查看得知沒有找到合適的編譯器。
可以使用下面的命令安裝編譯器,解決./configure時報錯。
sudo yum install gcc-c++ # 使用sudo yum install gcc-c++時會自動安裝/升級gcc及其他依賴的包
重新執行以下命令
./configure --prefix=/usr/local/python3
make
make install