How install and use another version python(python 2.7) on linux with the default python version is python 2.6
<p>There is a default python version, namely python 2.6, on the GPU server with Linux OS. Now I want to install a new python version on the server from its source, namely python 2.7. I should not change the default python version since I am not the administrator and some reason. So what should I do? </p>

<p>You can use <code>virtualenv</code>, to execute your programm in an environment with python 2.7.</p>

<p>Install <code>virtualenv</code> and <a href="https://virtualenvwrapper.readthedocs.io/en/latest/" rel="nofollow"><code>virtualenvwrapper</code></a> (for comfotable use.)</p>

<p><code>mkvirtualenv -p &lt;your-python-version&gt;</code> would then start a virtual environment where the desired python version is the default.</p>

python linux python-2.7