root@N4050:~# which python
/usr/bin/python
root@N4050:~#
root@N4050:~# file /usr/bin/python
/usr/bin/python: symbolic link to `python2.7'
root@N4050:~# ls /usr/bin/python
/usr/bin/python
root@N4050:~# ls -al /usr/bin/python
lrwxrwxrwx 1 root root 9 Oct 10 20:51 /usr/bin/python -> python2.7
root@N4050:~# which python2.7
/usr/bin/python2.7


looks better with colors :)   but I hope you get the point that there is a
default python for the operating system that you can change simple by
creating a symbolic link using /usr/bin/python

example:

rm /usr/bin/python   # its just a simple link
ln /usr/bin/python2.7 /usr/bin/python

this should do it



On Fri, Dec 28, 2012 at 4:18 PM, Martin Weissenboeck <[email protected]>wrote:

> I want to make a new Python installtion on a Debian computer.
> I have installed Python 2.7.3, because there are some new language
> constructs I want to use.
> Afterwards I have made a new installation of web2py using the script
> setup-web2py-ubuntu.sh. Works fine, but it uses Python 2.6
>
> What changes should I make?
> Regards, Martin
>
>
>  --
>
>
>
>

-- 



Reply via email to