参考:https://docs.djangoproject.com/en/1.9/topics/install/#installing-official-release
-
升级pip
sudo pip install --upgrade pip
-
安装django
sudo pip install Django
-
检查安装结果
python -c "import django; print(django.__path__)"
-
查看django版本
python -m django --version