This question already has an answer here:

I have just installed Ubuntu 12.04 which comes with Python 2.7. I have installed Python 3.3, so now I have both versions. For example, if I type python in the terminal I get version 2.7 and if I type python3.3 I get that version.

I don't see why I would need 2 versions (?) so how do I uninstall Python 2.7? And if I do so, will the "python" command then point to Python 3.3?

marked as duplicate by Takkat, karel, user117103, Florian Diesch, Maythux Feb 8 '14 at 7:23

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 5
    There are several important programs that depend on Python 2.7, so it's not recommended to remove it. You can add alias py="python3" to your ~/.bashrc if you only need a shorthand. – edwin Feb 2 '14 at 12:58
  • 2
    PEP 394 recommends that python starts some version of Python 2.x – Florian Diesch Feb 2 '14 at 13:12

Are you sure that you won't need Python-2.7 in a month?

Maybe you'll start some programming in Python using OpenCV or some other packages, for which bindings to Python3 do not exist yet in the repository.

Seriously, I'd just leave Python-2.7 there - it doesn't harm.


I'd rather additionally install ipython and ipython notebook for both versions. You will not regret it.

Not the answer you're looking for? Browse other questions tagged or ask your own question.