Installing web2py
From Notes_Wiki
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 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
- Export proxy using something like 'export http_proxy=http://proxy.iiit.ac.in:8080/' as ez_setup will download packages from Internet.
- Install easy_install package using 'python ez_setup.py'
- Install hashlib using 'easy_install-2.4 hashlib'
- Install uuid using 'easy_install-2.4 -U uuid'
- Install python-sqlite2 package using 'yum install python-sqlite2'
- 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.