<br>If the pythons you require are in synaptic (sudo to root and run synaptic), you probably can just use them.<br><br>If not, then you, for each release, need to:<br>1) download a tarball using a browser or whatever<br>2) extract the tarball: tar xvfp foo.tar.bz2<br>
3) cd into the newly created, top-level directory, and run ./configure --prefix /usr/local/cpython-2.6 (or similar)<br>4) Run "make", optionally with parallelism; I often use number_of_cores+1, so for a quad core system, I might use "make -j 5". This speeds up the build.<br>
5) Run /usr/local/cpython-2.6/bin/python - just to make sure it gives a prompt. control-d to exit.<br>6) Try running your script with one of your new python builds: /usr/local/cpython-2.6/bin/python my-script<br><br>I've done this for 2.5, 2.6, 2.7, 3.0, 3.1, 3.2 and the 3.3 preview stuff. They cooperate with each other well. Actually, I scripted out the build so that I'd get all 7 built automatically with cython and pylint in them.<br>
<br><div class="gmail_quote">On Tue, May 22, 2012 at 4:47 PM, Gelonida N <span dir="ltr"><<a href="mailto:gelonida@gmail.com" target="_blank">gelonida@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
On Ubuntu 12.04 python 2.7 is the default version<br>
<br>
I'd like to install python 2.6 parallel to 2.7 and create a virtualenv for it.<br>
<br>
The reason is, that I have to write some code, that will be executed under 2.6 and I want to be sure, that I don't accidentally write code, that would no more run on 2.6.<br>
<br>
What would be the recommended way to install (compile) 2.6 on 12.04?<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
-- <br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/<u></u>mailman/listinfo/python-list</a><br>
</font></span></blockquote></div><br>