How to upgrade django?

后端 未结 15 1641
情歌与酒
情歌与酒 2021-01-31 07:57

My project was running on Django 1.5.4 and I wanted to upgrade it. I did pip install -U -I django and now pip freeze shows Django 1.6.5 (clearly django

15条回答
  •  北荒
    北荒 (楼主)
    2021-01-31 08:09

    with python 3.7 try:

    sudo pip3 install --upgrade django==2.2.6
    

    Because using the following:

    pip3 install -U django
    

    or with python 2.7 if you like to keep that old python:

    pip install -U django
    

    Only gives you the older version of django (1.11.xx instead of 2.2.6)

提交回复
热议问题