[CentOS] Changing Python Version

Markus Falb markus.falb at fasel.at
Sat Apr 14 19:10:16 UTC 2012


On 14.4.2012 20:40, Quincey Robertson wrote:
> Hi;
> I am trying to change the default version of python on my centos 5.7 box and leave the old installation. Frustrated by not finding any help online, I went ahead and installed Python 2.6 from the source. It appears to be my default, but when I fire up mod_wsgi, it complains that it can't import os. Please advise.

hard to tell without error message, but I guess that mod_wsgi is linked
to your old python and wont work with another python. Maybe you have to
recompile mod_wsgi too?

...snip
$ ldd /usr/lib64/httpd/modules/mod_wsgi.so
	...
	libpython2.4.so.1.0 => /usr/lib64/libpython2.4.so.1.0
	...
snap...
-- 
Kind Regards, Markus Falb

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 307 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/centos/attachments/20120414/02a50dc5/attachment.sig>


More information about the CentOS mailing list