I want to run multiple Python version in my box. Is there anything like version manager in Python where I can switch between multiple Python version without having to call the full path of the python binary? I have tried virtualenv and it seems to only cover problems running multiple python libraries version.
Thanks for your help.
You don't have to use the full path.
Does that answer your question?
I use virtualenv to keep track of different environments I need for my projects. I may setup django 1.0 in one environment or django 1.2 for another. You can use it to set which version of python you'd like to use in a particular environment as well. Here's the link to the site which has great samples and tutorials for how to get running: http://pypi.python.org/pypi/virtualenv
When calling python from bash you could try an alias.
Let's say you have a script called script.py with following content:
So, launching a script with a different version of python looks like: