Install two versions of Python possible?

I am just about to study python. I entered “python” in terminal and it showed:

Python 2.7.13 (default, Jan 19 2017, 14:48:08)

Can I install the latest python version alongside this or should i uninstall Python 2.17.13 first? Or maybe I can upgrade this version to the latest?

If I can install two python versions, how do I go about running the latest?

Thanks much in advance!

Do not do that, you'll break your system.

Python2 and Python3 are both already installed on Ubuntu:

1 Like

Oh wow! That saves me a lot of trouble! Thanks!

Any recommended IDE for python in ubuntu-mate? (Planning to code mobile apps.)

PyCharm if you want an ide. Sublime Text 3 or Visual Studio Code if you want an editor.

1 Like

Yep, Python is such an integral part of Linux that we’ve already got both installed! :slight_smile:

You know, an IDE can seem like a necessity, but check out the old-school text editors Vim and Emacs. An IDE is full of helpful-seeming buttons etc., but IMO the actual text-editing aspects of most IDEs is rather weak, and they make you rely on the mouse. Vim and Emacs, on the other hand, appear very minimalistic at first, but are designed so you can do EVERYTHING without your hands leaving the keyboard. This is a much faster way to edit. A minimal version of Vim called vi is actually already installed, it’s the standard CLI editor on Linux systems, but Vim has more features. If you decide to try one, start by following the built-in tutorial. For Vim, trigger it by typing vimtutor at the shell prompt. Emacs offers the tut at the start screen.

For IDEs, I like Geany. It’s a nice, lightweight little IDE, and handles a number of languages (including Python) very well.

All of these are 100% free (as in freedom), unlike Pycharm or Sublime Text, and you can find them in the Ubuntu repos, just a sudo apt install away. :smiley:

1 Like