Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I needed to install UCS2 python next to UCS4 python. So I went to comp.lang.python and asked them about it. Probably not the best place to ask it, but they answered

https://groups.google.com/forum/?fromgroups#!topic/comp.lang.python/bGuAfqa76W8

and now i have brand new python 2.7.3 ucs2 installed in /opt/bin/python

What I need now is - how can I install all other python modules that I have installed for that python version also. Basically stuff like PIL and postgresql and mod_wsgi - basically everything needed to run Django for that python version.

Is this the right the place to ask for it?

share|improve this question
add comment

2 Answers

You have to use virtualenv otherwise all installations would go to default installed python.

What virtualenv will do is install multiple python versions having separate installed modules on the system and you can choose to run any version anytime you want. It's the default way of python world to manage different versions.

Also install virtualenvwrapper which simplifies usage of virtualenv.

share|improve this answer
add comment

The easiest option is probably to use virtualenv with the --python parameter to specify your custom installation. Then install the modules you want using easy_install or pip.

The Right Way is to build Debs/RPMs for all the modules.

share|improve this answer
    
Thanks for the answer. Do you have nice and clear guide where/how to get started. Do i also need to get rid of this UCS2 python installation and install it again? –  Zayatzz Jun 20 '12 at 17:21
    
Ok. ive installed virtualenv and it looks like i dont understand the results. When i run the activate script - then i get correct python version. but when i run this activate_this.py in django.wsgi script, then the python version i get is not the one of virtual environment. Whats up with that? –  Zayatzz Jun 24 '12 at 17:16
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.