D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] python versions


I have both python v2 and python v3 installed. When I just type in 'python' into a terminal screen I get v2. I need to enter 'python3' to get the newer version. I seem to remember that there is a way to make the 'python' instruction find the newer version automatically.

If you're on Ubuntu (or presumably another debian derivative) there's the update-alternatives comand:

# update-alternatives --config python

That'll give you a list of the versions installed and let you select the default.
The Mailing List for the Devon & Cornwall LUG
FAQ: http://www.dcglug.org.uk/listfaq