There are errors when I install django by git?

前端 未结 4 1942
自闭症患者
自闭症患者 2020-12-09 10:10

I install django through :

git clone git://github.com/django/django.git

pip install -e django/

I use Ubuntu 16.04.

But

4条回答
  •  青春惊慌失措
    2020-12-09 11:05

    You can install a Python 2 version of Django using git - you just need to checkout the correct release tag first. Try something like

    git clone git://github.com/django/django.git
    cd django
    git checkout 1.11.0
    cd ..
    pip install -e django/
    

    That said, you are much better off using pip directly, as other solutions suggest.

提交回复
热议问题