I have Python 2.6.6
installed by default on a Debian machine. To get the default python version, I've used :
python -V
I've also installed python 2.7.5
but the default python interpreter is still the old version.
I know that I can use the python2.7
command to run my scripts, but I want to directly run my script like this:
app.py
And I guess the default interpreter will be used.
How can I switch to the newest version of python ?