首先安装python3.6和pip3
1 apt-get update
2 apt install software-properties-common
3 apt-get update
7 add-apt-repository ppa:jonathonf/python-3.6
9 apt-get update
8 apt-get install python3.6
15 update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1
16 update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2
17 python3 -V
18 update-alternatives --install /usr/bin/python python /usr/bin/python2 100
19 update-alternatives --install /usr/bin/python python /usr/bin/python3 150
20 python -V
22 apt-get install python3-pip
23 pip -V
24 pip install --upgrade pip
下载Django
pip install django
安装MySql
apt-get install mysql-server
这里只安装mysql服务,注意中间输入password