layout | title |
---|---|
default |
Installation |
web.py
supports Python 2.4 – 2.6 and has no immediate prerequisites.
The easiest way to install web.py
is using
easy_install
.
Note that you will install the version specified in the Python Package Index.
easy_install web.py
wget http://webpy.org/static/web.py-0.33.tar.gz
tar xvzf web.py-0.33.tar.gz
cd web.py-0.33
sudo python setup.py install
If you need to bundle web.py
with your application extract the source to a vendor
folder and create a symlink, normally within your package's root.
ln -s vendor/web.py-0.33/web web
If you are on a Debian-based system you can install web.py
using apt-get
.
Note that you may not get the latest version as the Ubuntu/Debian release cycles are different from web.py
. See <a href=http://packages.debian.org/search?searchon=names&keywords=python-webpy>Debian and Ubuntu package profiles for more information.
sudo apt-get install python-webpy
If you are on a Red Hat-based system you can install web.py
using yum
or up2date
.
Note that CentOS requires the EPEL repository.
yum install python-webpy
up2date -i python-webpy
To follow the bleeding edge clone the master branch.
git clone git://github.com/webpy/webpy.git
python -c "import web; web.application(('/', lambda: 'success')).run()"
http://0.0.0.0:8080/
Point a browser to your host at port 8080
and expect a response of success
.