Shankar Menon Shankar Menon - 1 year ago 189
Linux Question

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.

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download