How to upgrade django?

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

    I use this command for upgrading any package using pip:

    pip install  --upgrade 
    

    Example: pip install django --upgrade

    you need to use the --upgrade or -U flag for upgrading.

    Alternatively, you can use python -m pip install -U Django.

提交回复
热议问题