At the command line:

$ pip install oslo.db

You will also need to install at least one SQL backend:

$ pip install PyMySQL


$ pip install psycopg2


$ pip install pysqlite

Using with PostgreSQL

If you are using PostgreSQL make sure to install the PostgreSQL client development package for your distro. On Ubuntu this is done as follows:

$ sudo apt-get install libpq-dev
$ pip install psycopg2

The installation of psycopg2 will fail if libpq-dev is not installed first. Note that even in a virtual environment the libpq-dev will be installed system wide.