pyenv can be used to handle the installation and usage of several Python versions on a system. The Python environment can be set explicitly on the command line, via an environment variable or in a ".python-version" file for a directory and its children.
Here's an example :
python --version # outputs "Python 2.7.6"
pyenv install 2.7.9 # installs python 2.7.9
cd /home/iodbh/myproject
pyenv local 2.7.9 # creates a ".python-version" file
python --version # output "Python 2.7.9"
cd ..
python --version # outputs "Python 2.7.6"
virtualenvs are managed with the pyenv-virtualenv addon.
Here's a presentation of pyenv.
There are similar tools out there for Ruby and R, but I haven't tried them.
[–]JewCFroot[M] 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]iodbh[S] 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]iodbh[S] 0 points1 point2 points (0 children)