开发者

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 ve开发者_运维百科rsion 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.


One of the way is typing this command on console:

pip install --upgrade django


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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜