Hello everyone!

I have been using web2py for a couple of years (amazing software, thank you 
all for building it supporting us newbies!) and it has been running using 
Python v2.

Now, I would like to switch to Python 3 runtime, but I am not sure what is 
the proper way.

I am usually installing web2py using the installation script available from 
here 
<https://github.com/web2py/web2py/blob/master/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh>,
 and 
it is running under *Ubuntu 18.04*.

djordje@vmi:~$ *python **--**version*
Python 2.7.17
djordje@vmi:~$ *python3 **--**version*
Python 3.6.9
djordje@vmi:~$ *lsb_release **-**a*
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.4 LTS
Release:        18.04
Codename:       bionic

I tried to set the default Python version to 3, as explained on this link 
<https://stackoverflow.com/questions/41986507/unable-to-set-default-python-version-to-python3-in-ubuntu#:~:text=to%20go%20into%20the%20bashrc,file%20make%20the%20following%20change.&text=To%20change%20Python%203.6.8,Ubuntu%2018.04%20to%20Python%203.7.&text=Steps%20to%20install%20Python3.7,it%20as%20the%20default%20interpreter.&text=Save%20the%20file%2C%20close%20the%20terminal%20and%20open%20it%20again>
 using:

update-alternatives --remove python /usr/bin/python2
update-alternatives --install /usr/bin/python python /usr/bin/python3 10

and it sets the default Python to v3, but after rebooting the server - 
web2py still runs with Python v2

Version
2.18.5-stable+timestamp.2019.04.08.04.22.03
(Running on nginx/1.14.0, Python 2.7.17)

Is there a recommended way to set web2py to run with Python 3 on Linux?

Thank you,
Best regards,
Djordje
~~~

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/1d9ccd34-05ff-471f-b40c-2cb0b87be067%40googlegroups.com.

Reply via email to