安装python3.6
yum install python36 -y
- 查看版本
安装完成,查看一下python版本是否正常
python36 --version
ln -s /usr/bin/python3.6 /usr/bin/py3
ln -s /usr/bin/python3.6 /usr/bin/python3
安装pip3
yum install openssl-devel -y
yum install zlib-devel -y
wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-19.6.tar.gz#md5=c607dd118eae682c44ed146367a17e26
tar -zxvf setuptools-19.6.tar.gz
cd setuptools-19.6
python36 setup.py build
python36 setup.py install
wget https://github.com/pypa/pip/archive/9.0.1.tar.gz
tar -zvxf 9.0.1.tar.gz
cd pip-9.0.1
python36 setup.py install
pip --version
pip3 install --upgrade pip