简体   繁体   中英

How to upgrade Django on ubuntu?

Not a Django developer. We initially installed Django from Ubuntu packages by typing apt-get install python-django . Now we need version 1.x - our version is 0.96.1 Could you advise an easy way to upgrade?

Easiest way to upgrade Django on Ububtu is to make use of the easy_install script provided by the python-setuptools package.

sudo apt-get install python-setuptools
sudo easy_install --upgrade django

If you really can't upgrade the Ubuntu package as suggested by Ludwik, you might want to consider installing the source directly. It's pretty easy, and is fully documented here .

It looks like you've got a really old version of Ubuntu. Django 0.96.1 was distributed last time with Ubuntu 8.04. Official repositories for the most recent Ubuntu 9.10 includes Django 1.1.1, which is the most recent version of Django. You can upgrade Ubuntu or try to install the new .deb package in your old OS (although I can't promise that all dependencies will be met by Ubuntu 8.04).

其中一种方法是在控制台上输入以下命令:

pip install --upgrade 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