- 环境
uname -r
2.6.32-042stab116.1
cat /etc/redhat-release
CentOS release 6.6 (Final)
- 下载python包
cd /data
wget https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tgz
- 安装
tar -xf Python-2.7.8.tgz
cd Python-2.7.8
./configure
make && make install
- 验证
python -V
Python 2.7.8
- pip 安装
curl https://bootstrap.pypa.io/get-pip.py | python
时间: 2024-10-02 09:40:14