1.编译安装
wget https://www.Python.org/ftp/python/3.5.0/Python-3.5.0.tgz
tar zxvf Python-3.5.0.tgz
cd Python-3.5.0
./configure --prefix=/usr/local/python3.5
make
make install
ln -s /usr/local/python3.5/bin/python3.5 /usr/bin/python #创建软链接
$ /usr/bin/python3
Python 3.6.0
2.epel安装
sudo yum install -y https://centos6.iuscommunity.org/ius-release.rpm
sudo yum install -y python35u python35u-pip
ln -s /usr/bin/python3.6 /usr/bin/python3
ln -s /usr/bin/pip3.6 /usr/bin/pip3
pip安装Django
pip3 install Django==1.11
评论已关闭