CherryPy uses 100% pure Python, so it runs everywhere Python runs (Windows, Unix, Mac, ...). All you need is a working distribution of Python 2.1 or higher on your machine.
Download the latest version of CherryPy from this page http://www.cherrypy.org/download and unzip/untar the file
This will create a CherryPy-version/ directory with a few files and sub-directories
Go to the demo/ directory and type the following command:
python ../cherrypy.py Root.cpy
This will create a file called RootServer.py
To run it, just enter:
[remi@serveur demo]$ python RootServer.py
Reading parameters from RootServer.cfg ...
Calling initServer() ...
Reading gaz station database for the Prestation demo ...
Done reading database
Starting Httpd service ...
Server parameters:
portOrUnixFile: 8000
numberOfProcs: 1
staticContentList: [('images', 'images')]
Serving on 8000
Then open a web browser an type in the URL: http://localhost:8000/, and voila
You can play around with the demo website called Prestation or with the little tests that demonstrate a few of CherryPy's capabilities.
In most cases, you can just stop the server by hitting "Ctrl-C".
This will not work if you're using Python-2.1 or Python-2.2 on Windows and the timeoutsocket.py module is not installed. In that case, you can stop the server by hitting "Ctrl-Break".
If you're on a unix-based system and the server is running in the background, then you can stop it by typing "kill <PID>".
Now that we've downloaded CherryPy and run the demo, it's time to understand how a developer can develop a website using CherryPy...