Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

I'm using Ubuntu 14.04 where the default python version is 2.7.

I would love to type python3 to run python 3.4. How can I set that ? (After that, I think I can run python 2.7 by typing python2).

share|improve this question

marked as duplicate by Avinash Raj, karel, i08in, Warren Hill, Eric Carvalho May 23 '14 at 20:47

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.

See my answer here: askubuntu.com/questions/449555/… –  i08in May 18 '14 at 9:26

1 Answer 1

python is just a symlink in bin.
Just run the following command:

ln -s /usr/bin/python3 ~/bin/python

If you want to change back, run:

ln -s /usr/bin/python2 ~/bin/python

Also, you can look here

share|improve this answer
This may break many applications that use python to refer to python2. –  i08in May 18 '14 at 9:40

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