One piece,是真正存在的。

此博客停更,新地址传送门:Yuanjie

Django-安装篇

  1. 前提准备:Python,PIP
    1. Python直接去官网下载并安装:https://www.python.org/download/,本机安装Python版本:Python 2.7.10
    2. PIP:http://www.pip-installer.org/
  2. 使用PIP安装Django:pip install Django
    1. ➜  ~  pip install Django
      You are using pip version 7.1.0, however version 7.1.2 is available.
      You should consider upgrading via the 'pip install --upgrade pip' command.
      Collecting Django
        Downloading Django-1.8.6-py2.py3-none-any.whl (6.2MB)
          42% |█████████████▋                  | 2.6MB 32kB/s eta 0:01:49

      等待安装结束

    2. Collecting Django
        Downloading Django-1.8.6-py2.py3-none-any.whl (6.2MB)
          100% |████████████████████████████████| 6.2MB 25kB/s
      Installing collected packages: Django
      Successfully installed Django-1.8.6
  3. 验证安装是否成功
    1. 进入Python
    2. >>> import django
      >>> print(django.get_version())
      1.8.6
  4. 至此,Django已安装成功

posted on 2015-11-22 21:34  One|Piece  阅读(418)  评论(0编辑  收藏  举报

导航