Installing web2py

From Notes_Wiki

Home > Python > Installing web2py

For installing web2py we have to install 'hashlib' and 'uuid' which cannot be installed from yum. Hence we first download 'ez_setup.py' tool from Internet (such as http://peak.telecommunity.com/dist/ez_setup.py) and use it to install hashlib and 'uuid'. Then we use yum to install 'python-sqlite2' package. After that we can extract web2py source package and run web2py using 'python web2py.py'.

Steps for installation

  1. Export proxy using something like 'export http_proxy=http://proxy.iiit.ac.in:8080/' as ez_setup will download packages from Internet.
  2. Install easy_install package using 'python ez_setup.py'
  3. Install hashlib using 'easy_install-2.4 hashlib'
  4. Install uuid using 'easy_install-2.4 -U uuid'
  5. Install python-sqlite2 package using 'yum install python-sqlite2'
  6. Run web2py using 'python web2py.py'. You can also run web2py using 'python web2py.py -a <administrator_password> &' to run web2py in command line mode. Unless password is specified by -a web2py always runs in GUI mode. We can use 'python web2py -h' for detailed help on running web2py.


Home > Python > Installing web2py