3
When I type the command python
, Ubuntu runs Python 2.7. However, in the new versions of Ubuntu, Python 3 is also installed.
When I run python -V
, appears "Python 2.7.12", but I would like to use the command python
to run the version 3.5
.
I could create a symbolic link or things like that, but since I don’t know if this is the right thing to do, I ask:
Is there any specific way to change the default version of the command python
, without gambiarra or harm the operation on Ubuntu?
Remark: I asked this question because in the case of PHP, to do this, the procedure is a little different than simply defining an alias and tals, and I was afraid to give problems.
– Wallace Maxters
she-bang (so could run 'directly') or virtualenv :)
– Guilherme Nascimento