title: Is there a proper way to make web2py use Python3 instead of Python2?
body: <p>I have been using web2py with Python v2 for a couple of years, and now I would like to switch to Python 3 runtime, but I am not sure what is the proper way?</p>
  
  <p>I am usually installing web2py using the installation script available from <a href="https://github.com/web2py/web2py/blob/master/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh" rel="nofollow noreferrer">here</a>, and it is running under <strong>Ubuntu 18.04</strong>.</p>
  
  <pre><code>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
  </code></pre>
  
  <p>I tried to set the default Python version to 3, as explained on this <a href="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.&amp;text=To%20change%20Python%203.6.8,Ubuntu%2018.04%20to%20Python%203.7.&amp;text=Steps%20to%20install%20Python3.7,it%20as%20the%20default%20interpreter.&amp;text=Save%20the%20file%2C%20close%20the%20terminal%20and%20open%20it%20again">link</a> using:</p>
  
  <pre><code>update-alternatives --remove python /usr/bin/python2
  update-alternatives --install /usr/bin/python python /usr/bin/python3 10
  </code></pre>
  
  <p>and it sets the default Python to v3, but even after rebooting the server - web2py still runs with Python v2.</p>
  
  <pre><code>Version
  2.18.5-stable+timestamp.2019.04.08.04.22.03
  (Running on nginx/1.14.0, Python 2.7.17)
  </code></pre>
  
  <p>Is there a recommended way to set web2py to run with Python 3 on Linux?</p>