如何在ubuntu上升级Django?

时间:2022-07-03 21:22:46

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?

不是Django开发人员。我们最初通过输入apt-get install python-django从Ubuntu软件包安装Django。现在我们需要版本1.x - 我们的版本是0.96.1你能建议一个简单的升级方法吗?

4 个解决方案

#1


6  

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.

如果您真的无法按照Ludwik的建议升级Ubuntu软件包,您可能需要考虑直接安装源代码。这很简单,并在此完整记录。

#2


65  

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

在Ububtu上升级Django的最简单方法是使用python-setuptools包提供的easy_install脚本。

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

#3


2  

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

看起来你有一个非常老版本的Ubuntu。上次使用Ubuntu 8.04发布了Django 0.96.1。最新的Ubuntu 9.10的官方存储库包括Django 1.1.1,这是Django的最新版本。您可以升级Ubuntu或尝试在旧操作系统中安装新的.deb软件包(尽管我不能保证Ubuntu 8.04将满足所有依赖项)。

#4


1  

One of the way is typing this command on console:

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

pip install --upgrade django

#1


6  

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.

如果您真的无法按照Ludwik的建议升级Ubuntu软件包,您可能需要考虑直接安装源代码。这很简单,并在此完整记录。

#2


65  

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

在Ububtu上升级Django的最简单方法是使用python-setuptools包提供的easy_install脚本。

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

#3


2  

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

看起来你有一个非常老版本的Ubuntu。上次使用Ubuntu 8.04发布了Django 0.96.1。最新的Ubuntu 9.10的官方存储库包括Django 1.1.1,这是Django的最新版本。您可以升级Ubuntu或尝试在旧操作系统中安装新的.deb软件包(尽管我不能保证Ubuntu 8.04将满足所有依赖项)。

#4


1  

One of the way is typing this command on console:

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

pip install --upgrade django