Linux安装并运行Python
configure: error: no acceptable C compiler found in $PATH 问题解决
1、下载python
wget https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz
2、解压、编译安装(依次执行以下5条命令)
tar -zxvf Python-2.7.15.tgz
cd Python-2.7.15
./configure --prefix=/usr/local/python-2.7.15
make
make install
3、如果系统自带了python版本,修改默认版本详见
https://blog.csdn.net/u011534057/article/details/51615193
4、安装后查看python版本号
python -V
安装遇到的问题
configure: error: no acceptable C compiler found in $PATH
安装gcc即可
yum install gcc