小任班长的博客 - Linux Python
type: channel
link: https://cnxiaocheng.top/tag/Linux-Python/
items: Linux安装并运行Python

Linux安装并运行Python
type: item
date: 2018-12-20T09:00:00+08:00
description: configure: error: no acceptable C compiler found in $PATH 问题解决1、下载pythonwget 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/516151934、安装后查看python版本号python -V 安装遇到的问题configure: error: no acceptable C compiler found in $PATH 安装gcc即可yum install gcc