Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #102123

Re: python-2.7.3 vs python-3.2.3

From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: python-2.7.3 vs python-3.2.3
Date 2016-01-27 02:21 +1100
Message-ID <mailman.13.1453821676.2338.python-list@python.org> (permalink)
References <201601260726.55545.gheskett@wdtv.com> <n87vav$9i$1@ger.gmane.org> <201601261011.19033.gheskett@wdtv.com>

Show all headers | View raw


On Wed, Jan 27, 2016 at 2:11 AM, Gene Heskett <gheskett@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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: python-2.7.3 vs python-3.2.3 Chris Angelico <rosuav@gmail.com> - 2016-01-27 02:21 +1100

csiph-web