set -e
# ========================
# 解决交互式不能回退等问题
# ========================
# yum install -y readline readline-devel
# ================
# 下载源码编译安装
# ================
# wget https://www.python.org/ftp/python/2.7.16/Python-2.7.16.tar.xz
# tar xf Python-2.7.16.tar.xz
cd Python-2.7.16
./configure \
--prefix=/Disease/Share/Software/python/v-2.7.16 \
--enable-shared
make -j 16
make install
# ===========================
# 解决sqlite3模块不能使用问题
# ===========================
cp /usr/lib64/python2.6/lib-dynload/_sqlite3.so /Disease/Share/Software/python/v-2.7.16/lib/python2.7/lib-dynload/