Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make python3.2 interpreter the default interpreter in debian

I got both python2 and python3 installed in my debian machine. But when i try to invoke the python interpreter by just typing 'python' in bash, python2 pops up and not python3. Since I am working with the latter at the moment, It would be easier to invoke python3 by just typing python. Please guide me through this.

like image 661
Shankar Menon Avatar asked May 03 '12 15:05

Shankar Menon


Video Answer


1 Answers

the only somehow safe way would be to use an alias in your shell, by placing

alias python=python3

into your ~/.profile or ~/.bashrc...

this way the system scripts depending on python being python2 won't be affected.

like image 131
mata Avatar answered Oct 10 '22 05:10

mata