python, Django 的安装

yum install zlib

yum install zlib-devel

yum install openssl-devel

否则导致安装setuptools出错,还需要重新编译python

如果安装pip遇到问题:ImportError: No module named setuptool,需要安装setuptools,

1. wget "https://bitbucket.org/pypa/setuptools/get/default.tar.gz#egg=setuptools-dev" --no-check-certificate

2. tar -xvf

3. python setup.py install

 

安装pip

1.wget https://pypi.python.org/packages/source/p/pip/pip-1.3.1.tar.gz --no-check-certificate

2.    #chmod +x pip-1.3.1.tar.gz
      #tar xzvf pip-1.3.1.tar.gz
      #cd pip-1.3.1
      #python setup.py install
     

 安装Django

Option 1. Get the latest official version

The latest official version is 1.7.

You can install it with pip:

pip install Django==1.7

posted on 2014-09-05 23:47  strikebone  阅读(389)  评论(0编辑  收藏  举报

导航