Difference between revisions of "Installing web2py"

From Notes_Wiki
m
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
=Installing web2py=
[[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'  
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 &lt;administrator_password&gt; &amp;</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 &lt;administrator_password&gt; &amp;</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

  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