Home > Backend Development > Python Tutorial > Detailed installation of the powerful lightweight open source framework web.py

Detailed installation of the powerful lightweight open source framework web.py

高洛峰
Release: 2016-10-17 14:43:51
Original
1485 people have browsed it

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.

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template