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


Groups > linux.debian.user > #175692

Re: Python Alternatives?

From deloptes <deloptes@gmail.com>
Newsgroups linux.debian.user
Subject Re: Python Alternatives?
Date 2016-12-14 00:30 +0100
Message-ID <sO4Ge-7q4-15@gated-at.bofh.it> (permalink)
References <sO4wx-7mX-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Michael Milliman wrote:

> I currently have both Python 2.7 and Python 3.4 installed on my debain
> 8.5 (jessie) system.  The default Python interpreter on the system is
> Python 2.7 (as linked by /usr/bin/python).  I would prefer this default
> to be Python 3.4.  I can, of course manually change the link in /usr/bin
> to point to Python 3.4, however, I am concerned that doing this may
> defeat some other available method for making this change. I note that
> update-alternatives does not have a group for the Python interpreter,
> and so cannot be used for this change.  Is there some other more
> acceptable method for making this change other than just manually
> changing the line /usr/bin/python to point to python3.4 instead of
> python2.7?

you mean this perhaps

$ python --version
Python 2.7.9
$ alias python=python3.4
$ python --version
Python 3.4.2

put the alias in your .profile to make it permanent

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Python Alternatives? Michael Milliman <michael.e.milliman@gmail.com> - 2016-12-14 00:20 +0100
  Re: Python Alternatives? deloptes <deloptes@gmail.com> - 2016-12-14 00:30 +0100
  Re: Python Alternatives? Ben Finney <bignose@debian.org> - 2016-12-14 00:50 +0100
    Re: Python Alternatives? Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2016-12-14 05:50 +0100
      Re: Python Alternatives? Ben Finney <bignose@debian.org> - 2016-12-14 08:20 +0100
    Re: Python Alternatives? Jonathan Dowland <jmtd@debian.org> - 2016-12-15 13:00 +0100
      Re: Python Alternatives? Kushal Kumaran <kushal@locationd.net> - 2016-12-15 17:00 +0100
        Re: Python Alternatives? Michael Milliman <michael.e.milliman@gmail.com> - 2016-12-15 21:50 +0100

csiph-web