How to upgrade django?

后端 未结 15 1353
情歌与酒
情歌与酒 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:07

    you must do the following:
    1- Update pip
    python -m pip install --upgrade pip
    2- If you already install Django update by using the following command
    pip install --upgrade Django
    or you can uninstall it using the following command
    pip uninstall Django
    3- If you don't install it yet use the following command
    python -m pip install Django
    4- Type your code

    Enjoy

提交回复
热议问题