Difference between revisions of "Installing web2py"
From Notes_Wiki
|  (Created page with "=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 t...") | m | ||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| [[Main_Page|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'   | 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   | 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'. | source package and run web2py using 'python web2py.py'. | ||
| Line 13: | Line 13: | ||
| #Install python-sqlite2 package using '<tt>yum install python-sqlite2</tt>' | #Install python-sqlite2 package using '<tt>yum install python-sqlite2</tt>' | ||
| #Run web2py using '<tt>python web2py.py</tt>'. You can also run web2py using '<tt>python web2py.py -a <administrator_password> &</tt>' to run web2py in command line mode. Unless password is specified by -a web2py always runs in GUI mode. We can use '<tt>python web2py -h</tt>' for detailed help on running web2py. | #Run web2py using '<tt>python web2py.py</tt>'. You can also run web2py using '<tt>python web2py.py -a <administrator_password> &</tt>' to run web2py in command line mode. Unless password is specified by -a web2py always runs in GUI mode. We can use '<tt>python web2py -h</tt>' for detailed help on running web2py. | ||
| [[Main_Page|Home]] > [[Python]] > [[Installing web2py]] | |||
Latest revision as of 13:25, 7 April 2022
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
- 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.

