
#bin/bash!
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make libffi-devel -y
cd /usr/local/src
wget https://test-art-h5.oss-cn-hangzhou.aliyuncs.com/Python-3.7.3.tgz
tar -zxf /usr/local/src/Python-3.7.3.tgz
cd Python-3.7.3
./configure
make  && make install
mv /usr/bin/python /usr/bin/python.bak
ln -s /usr/local/bin/python3 /usr/bin/python
mv /usr/bin/pip /usr/bin/pip.bak
ln -s /usr/local/bin/pip3 /usr/bin/pip
sed -i  '1c  #! /usr/bin/python2.7'    /usr/libexec/urlgrabber-ext-down
sed -i  '1c  #! /usr/bin/python2.7'    /usr/bin/yum

pip install aliyun-python-sdk-core-v3
pip install aliyun-python-sdk-ecs
pip install aliyun-python-sdk-slb
