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

      等待安裝結束python

    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已安裝成功
相關文章
相關標籤/搜索