On a clean installed Ubuntu, gcc, libc6-dev, build-essential, python-dev packages are
required for compiling Python C-extension packages. We provide binary eggs for Linux for all C-extensions
used, but when a new version of a C-extension is released, having the compiler chain installed
ensures that your install won’t break.

python-profiler (located in multiverse) is recomended. See Optimization
for more infomation.

python-setuptools allows you to use the easy_install command to fetch and install
Python modules (including TurboGears extensions) from the Cheeseshop (aka Python Package index).

(Replace X with the minor version number of the TurboGears release you want to install.)

Also here, you should check that the easy_install command is using Python 2.5. You can replace
easy_install with easy_install-2.5 to make sure.

Test that your installation works by running tg-admininfo:

$ tg-admin info

Database support

To use TurboGears properly, you’ll also need a database to use with your model. Python 2.5 already
includes an interface to the SQLite 3 library (the sqlite3 module), which works well with TurboGears.
Depending on which other databases you want to use, you can install one or more of the following packages:

python-psycopg2 – for using TurboGears with PostgreSQL (universe repository)

Other databases (Microsoft SQL Server, Oracle, Microsoft Access) can probably be used with the
python-adodb package from Universe. For more information on that subject, see the
ADOdb for Python homepage.

On a clean installed Ubuntu, gcc, libc6-dev, build-essential, python-dev packages are
required for compiling Python C-extension packages. We provide binary eggs for Linux for all C-extensions
used, but when a new version of a C-extension is released, having the compiler chain installed
ensures that your install won’t break.

python-profiler (located in multiverse) is recomended. See Optimization
for more infomation. If you install this package, some Python 2.5 packages will be installed as well.
This should be safe, since Python 2.4 will remain the default version on “Edgy”.

python-setuptools allows you to use the easy_install command to fetch and install
Python modules (including TurboGears extensions) from the Cheeseshop (aka Python Package index).

Other databases (Microsoft SQL Server, Oracle, Microsoft Access) can probably be used with the
python-adodb package from Universe. For more information on that subject, see the
ADOdb for Python homepage.

As normal for a Debian-based system, you’ll need to install all the dev packages. The included setuptools is out of date, but using it to update itself it easier than downloading ez_setup.py and installing it manually.

There are many other packages available for use with TurboGears. To install them on Ubuntu, just run:

$ sudo apt-get install "package-name"

where “package-name” is the name of the package you want to install and is usually of the form python-<projectname>. Alternatively, if you can’t find a package for your distribution or want
the newest version of the software, you should use easy_install:

$ sudo easy_install --prefix /usr/local "package"

where “package” is the name of the software as listed on the Cheeseshop.

Genshi is another template language, slated to become default in future versions of TurboGears.
For “Feisty” you can get it from the universe repository, for “Edgy” and “Dapper” use easy_install.
See GenshiTemplating for more information.