Think before you speak, read before you think.

Ubuntu下安装Django

Django为流行的python web开发框架

安装python的包管理器,easy_install

# apt-get install python-setuptools

可以使用下面的命令检查是否安装成功

# easy_install --version

显示版本信息则安装成功

接下来使用easy_install安装Django

# easy_install django

使用如下命令查看django是否安装成功

# python
Python 2.7.3 (default, Aug 1 2012, 05:14:39)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> django.VERSION
 (1, 4, 3, 'final', 0)

出现版本信息,则表示安装成功。


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *