Thank you, but it did not solve the problem.
Python 2.7.3 is the standard version:

~# python
Python 2.7.3 (default, Dec 28 2012, 09:37:13)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.

~# python2.7
Python 2.7.3 (default, Dec 28 2012, 09:37:13)
[GCC 4.4.5] on linux2

And in a test application I have:

def index():
    import sys, sqlite3
    return dict(message="Python %s, SQlite %s" % (sys.version,
sqlite3.sqlite_version))

Python 2.6.6 (r266:84292, Dec 26 2010, 22:48:11) [GCC 4.4.5], SQlite 3.7.3
Any ideas?

2012/12/28 Khalil KHAMLICHI <[email protected]>

> 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