简体   繁体   中英

How to install django 1.4

When trying to download django through:

sudo pip uninstall django

However, this downloads the new version of django 1.5. How would I force download version 1.4 through pip? Here is what I get when trying to install:

imac9:site-packages pdadmin$ sudo pip install django==1.4.1
Downloading/unpacking django==1.4.1
  Running setup.py egg_info for package django

    warning: no previously-included files matching '__pycache__' found under directory '*'
    warning: no previously-included files matching '*.py[co]' found under directory '*'
  Requested django==1.4.1, but installing version 1.5.1
Installing collected packages: django
    Found existing installation: Django 1.5.1

This can be done by using this command

sudo pip install django==1.4 #or any desired version.

should work.

Use this command :

pip install django=="1.7"

Administrator privilege may be required. If so then use it with sudo command.

Here the version is used 1.7 you should your required version.

You can also have a look at this tutorial : How to Install Django

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM