Django学习系列(一)--安装Django

来源:互联网 发布:php 00截断 版本 编辑:程序博客网 时间:2024/04/30 08:53

本机环境:

  操作系统:Ubuntu12.04

  python2.7.3

1.下载安装

wget https://www.djangoproject.com/m/releases/1.6/Django-1.6.1.tar.gztar -zxvf Django-1.6.1.tar.gzcd Django-1.6.1sudo python setup.py install 

在本机安装到了/usr/local/lib/python2.7/dist-packages



2.测试

john@john-pad:~/python_workspace$ pythonPython 2.7.3 (default, Sep 26 2013, 20:03:06) [GCC 4.6.3] on linux2Type "help", "copyright", "credits" or "license" for more information.>>> import django>>> dir(django)['VERSION', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', 'get_version']>>> 

未报错说明安装成功

0 0
原创粉丝点击