python-2.7.3 vs python-3.2.3

Chris Angelico rosuav at gmail.com
Tue Jan 26 10:21:07 EST 2016


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

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



More information about the Python-list mailing list