Re: Python Alternatives?
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
Reply to: