# 3 Quick Installation

The Python Web Modules do not need formally installing although it is eaiest if you do install them. All the examples, tests and scripts will run straight from the distribution once it is unzipped (see note above about optional components).

If you wish to use the web modulest the only requirement is that Python can find the web directory containg the web modules. This can be achieved in a number of ways:

1. Easiest: Execute the command below to install the modules to your Python Lib/site-packages directory where Python looks for new modules:

       python setup.py install

2. Place the web directory of the distribution in the same directory as the script which uses the modules since Python always searches the directory containing a script when looking for modules.
3. Modify your `PYTHONPATH` by:
   - Adding the following code in every file using the modules before you import the web modules:

         import sys
         sys.path.insert(0,'C:/path/to/distribution/directory')

     replacing C:/path/to/distribution/directory with the path to the directory containing the web directory.

     Note: You should not include the web directory in the path otherwise Python will look for a directory called web inside the web directory and will not find it!

   - Alternatively, append the path to the directory containing the web directory to the PYTHONPATH variable in the standard way for your operating system.

Once the web modules are imported, internal paths are setup so that you can import `Cheetah` or `pdbc` for example, but you must import the `web` module first.