Ubuntu16.04安装Django

官方给出的安装方法:

Install Django

You’ve got three easy options to install Django:

  • Install an official release. This is the best approach for most users.
  • Install a version of Django provided by your operating system distribution.
  • Install the latest development version. This option is for enthusiasts who want the latest-and-greatest features and aren’t afraid of running brand new code. You might encounter new bugs in the development version, but reporting them helps the development of Django. Also, releases of third-party packages are less likely to be compatible with the development version than with the latest stable release.

选项一:通过pip

pip install Django

几kb每秒,然后超时了,失败

选项二:通过相应操作系统的分发包

顺着链接点下去,发现:

Debian

The Debian package is named python-django and can be installed using the following command with root privileges.

aptitude install python-django

所以在Ubuntu下:

sudo apt install python-django

或者

sudo apt install python3-django

测试 

 问题:版本太低

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple django==1.11.3

posted @ 2017-07-12 10:44  HeapOverflow  阅读(259)  评论(0编辑  收藏  举报