1.安装依赖包
# yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel wget xz -y
2.编译安装python2.7
# cd ~
# wget --no-check-certificate https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tar.xz
# tar xvfJ Python-2.7.9.tar.xz
# cd Python-2.7.9
# ./configure --prefix=/usr/local
# make && make altinstall
# ln -s /usr/local/bin/python2.7 /usr/local/bin/python
退出SSH并重新登录
# python -V
Python 2.7.9
# which python
/usr/local/bin/python
3.安装python setuptools
# python ez_setup.py
# which easy_install
/usr/local/bin/easy_install
# /usr/local/bin/easy_install-2.7 pip
# ll /usr/local/bin
total 6136
-rwxr-xr-x 1 root root 101 Oct 29 02:34 2to3
-rwxr-xr-x 1 root root 323 Oct 29 02:42 easy_install
-rwxr-xr-x 1 root root 331 Oct 29 02:42 easy_install-2.7
-rwxr-xr-x 1 root root 99 Oct 29 02:34 idle
-rwxr-xr-x 1 root root 287 Oct 29 02:48 pip
-rwxr-xr-x 1 root root 289 Oct 29 02:48 pip2
-rwxr-xr-x 1 root root 293 Oct 29 02:48 pip2.7
-rwxr-xr-x 1 root root 84 Oct 29 02:34 pydoc
lrwxrwxrwx 1 root root 24 Oct 29 02:36 python -> /usr/local/bin/python2.7
-rwxr-xr-x 1 root root 6224569 Oct 29 02:34 python2.7
-rwxr-xr-x 1 root root 1687 Oct 29 02:34 python2.7-config
-rwxr-xr-x 1 root root 18547 Oct 29 02:34 smtpd.py
升级完毕
原神祈愿模拟器最新版
原神祈愿模拟器手机版是一款完整汉化的趣味原神抽卡模拟小游戏,
宝宝森林美食完整版
宝宝森林美食游戏最新版是一款十分有趣的休闲益智游戏,帮助宝宝
g沙盒仇恨官方英文版(gorebox)
G沙盒仇恨英文原版是一款最近非常火热的沙盒模拟类游戏,在这里
迷你世界测试服最新版2024
迷你世界测试服2021最新版,即迷你世界的先遣服版本,用户能
闪耀暖暖最新版2024
闪耀暖暖手游这是非常好玩的换装手游,游戏内容丰富有趣,游戏环