Home > Article > Backend Development > Detailed installation of the powerful lightweight open source framework web.py
web.py is a very powerful, lightweight and flexible open source web framework. The famous community Douban uses web.py for development. So today I will share the installation of web.py. . .
The installation of web.py is very simple and requires almost no configuration. It is the easiest to install and configure among the web frameworks I have used.
Environment:
Centos6.3
apache (you don’t need it here, because web.py comes with a web server)
python2.7
First of all, of course, you need to install python. I won’t go into it here, it’s relatively simple. You can use the following command:
yum install python
Then download the compressed package of web.py from the official website
shell# wget http://webpy.org/static/web.py-0.37.tar.gz.
Execute directly after decompression
shell# tar xzvf web.py-0.37.tar.gz
shell# cd web.py-0.37
shell# python setup.py install
The installation is complete.
Yes, it’s that simple!
web.py has a built-in web server, so it can be used directly after installation. Of course we can also use Ngnix or Apache here.
But more formally, you also need to install flup to provide a WSGI interface (WSGI is an interface between Python applications and web servers, similar to java's Servlet).
The download address of flup is: http://www.saddi.com/software/flup/dist/.
flup is also installed by executing
Python setup.py install.