在如下网址下载Django:
https://www.djangoproject.com/download/
我下载的是tar的,你们可以尝试别的,文档中连如何安装都给予了介绍。
How to get Django
Django is available open-source under the BSD license. It requires Python version 2.6.5 or higher, but it has no dependencies on other Python libraries. There are several ways you can get it:
Option 1. Get the latest official version
The latest official version is 1.5.4.
You can install it with pip:
pip install Django==1.5.4
You can also get it by direct download:
First, download Django-1.5.4.tar.gz (checksums). Then:
tar xzvf Django-1.5.4.tar.gz cd Django-1.5.4 sudo python setup.py install
下载好后,进入终端(terminal),果断tar开压缩包:tar -zxvf Django-1.5.4.tar.gz
然后进入tar开的目录:cd Django-1.5.4
最后一步来咯,我在python3下面安装的django哟:python3 setup.py install
没有报错的话,恭喜你成功了
验证你是否安装好django包可以
python3 进入shell模式
然后 import django下哟
没有报错 你的包已经完全可以用了
还在等什么,可以High了。