Difference between revisions of "Installing web2py"
From Notes_Wiki
m |
m |
||
Line 1: | Line 1: | ||
<yambe:breadcrumb self="Installing web2py">Python|Python</yambe:breadcrumb> | |||
=Installing web2py= | =Installing web2py= | ||
Line 13: | Line 14: | ||
#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. | ||
<yambe:breadcrumb self="Installing web2py">Python|Python</yambe:breadcrumb> |
Revision as of 05:50, 18 September 2018
<yambe:breadcrumb self="Installing web2py">Python|Python</yambe:breadcrumb>
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.
<yambe:breadcrumb self="Installing web2py">Python|Python</yambe:breadcrumb>