- install python
add the "c:/python27/python.exe" to PATH.
2.install django:
download it from http:
//www.djangoproject.com/download/
and unzip it ,then
//www.djangoproject.com/download/
successfully!!
3.however you can manager django versions by pip.
download pip form :
wget "https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=834b2904f92d46aaa333267fb1c922bb" --no-check-certificate
4.or install pip with python only:
//www.djangoproject.com/download/
- pip is already installed if you're using Python 2 >=2.7.9 or Python 3 >=3.4 downloaded from python.org, but you'll need to upgrade pip.
6 if you python version is <2.7.9 ,then download get-pip.py form :
https://bootstrap.pypa.io/get-pip.py
then run "python get-pip.py",and update the pip with "python -m pip install -U pip"
-
if you python is >=2.7.9 .then run "python -m pip install -U pip"
-
then you an install django with "pip install django".
网友评论