pip django 2.7 code example Example 1: latest version of django pip install Django==3.1.5 Example 2: django latest version pip install Django==3.1.1