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

后端 未结 5 1068
走了就别回头了
走了就别回头了 2021-02-05 09:38

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

5条回答
  •  庸人自扰
    2021-02-05 10:21

    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.

提交回复
热议问题