How to upgrade django?

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

    I'm not an expert on either Python or Django.

    What I am doing is following along this really very good book: Test Driven Web Development With Python (2nd Ed). It uses Django...

    I'm also using a Windoze machine (W10) with Cygwin.

    The reason I mention all this is because I found, having installed Python 3.6 in my Cygwin setup, that I had to use pip3, not pip, to install Django.

    My installed version of Django was 1.11.8. To follow the "official" (?) tutorial here they want you to have Django 2.0 installed. I successfully managed to do this with:

    $ pip3 install -U django
    

    Hope this helps someone. Perhaps someone much more knowledgeable than me can talk about the need or otherwise to use pip3 for all Python 3.x activity???

提交回复
热议问题