python-2.7.3 vs python-3.2.3

Gene Heskett gheskett at wdtv.com
Tue Jan 26 13:05:52 EST 2016


On Tuesday 26 January 2016 10:21:07 Chris Angelico wrote:

> On Wed, Jan 27, 2016 at 2:11 AM, Gene Heskett <gheskett at wdtv.com> 
wrote:
> > On Tuesday 26 January 2016 09:20:16 Wolfgang Maier wrote:
> >> I have used 2.7 and 3.2 side-by-side for two years or so on Ubuntu
> >> 12.04. Never encountered any problem except for a few times that I
> >> accidentally tried to run something with python when I should have
> >> used python3.
> >
> > I think thats unavoidable. ;-)
> >
> > I'm not sure what I'll need to go with it, but we'll find out today.
> >
> > Thanks Wolfgang
>
> Here's what I'd recommend :)
>
> $ sudo apt-get build-dep python3
> $ sudo apt-get install mercurial
> $ hg clone https://hg.python.org/cpython
> $ cd cpython
> $ ./configure
> $ make
> $ sudo make install

Message marked as important, should I need to. It turns out the script 
actually works fine on 2.7.3.

Thanks for the advice Chris, it will be helpfull in that event.

> That should get you Python 3.6 with a whole lot of new features above
> 3.2. (And yes, 3.6 and 3.2 can happily coexist too.) After that,
> you'll want to use pip exclusively for installing Python modules (you
> can use apt-get to grab packages for your 3.2 install, but it won't do
> anything for your 3.6), but other than that, you should have a
> perfectly working system that runs the very latest in Pythons.
>
> ChrisA


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>



More information about the Python-list mailing list