本文介绍了使用python 2.5而不是默认版本的python安装django的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须在我的linux服务器上安装Django,默认安装为python 2.4.我已经安装了python 2.5作为单独的版本.现在,我必须安装必须与python 2.5一起使用的Django.是否有任何特定要求,以便它与python 2.5一起安装,而不与服务器上可用的默认2.4版本一起安装?

I have to install Django on my linux server where python 2.4 is available as the default installation. I have installed python 2.5 as a separate version. Now I have to install Django which I have to use with python 2.5. Is there any specific requirement, so that it is installed with the python 2.5 and not with the default 2.4 version available on the server ?

请提出建议.

谢谢.

推荐答案

下载django源代码后,而不是这样做

after downloading the django source, instead of doing

python setup.py install

/path/to/python2.5 setup.py install

这篇关于使用python 2.5而不是默认版本的python安装django的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-07 07:13