开发者

Installing django with python 2.5 and not with the default version of python

开发者 https://www.devze.com 2023-01-05 06:07 出处:网络
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

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 ?

Please suggest.

Thanks in advance.


after downloading the django source, instead of doing

python setup.py install

do

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


Django is 100% compatible with Python 2.4. However if you really want to use 2.5 you would probably be best off using a virtualenv and installing Django and your project inside that.

Don't forget if you do try and install 2.5, you will also need to recompile mod_wsgi to use it, as the system packaged version will only use 2.4.

0

精彩评论

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

关注公众号