2014-04-18 11:33:16 +03:00
|
|
|
============
|
|
|
|
Installation
|
|
|
|
============
|
|
|
|
|
|
|
|
At the command line::
|
|
|
|
|
2014-06-05 14:03:37 +01:00
|
|
|
$ pip install oslo.db
|
2014-04-18 11:33:16 +03:00
|
|
|
|
2014-06-05 14:03:37 +01:00
|
|
|
You will also need to install at least one SQL backend::
|
|
|
|
|
|
|
|
$ pip install MySQL-python
|
|
|
|
|
|
|
|
Or::
|
|
|
|
|
|
|
|
$ pip install pysqlite
|
|
|
|
|
|
|
|
Using with MySQL
|
|
|
|
----------------
|
|
|
|
|
|
|
|
If using MySQL make sure to install the MySQL client development package for
|
|
|
|
your distro. On Ubuntu this is done as follows::
|
|
|
|
|
|
|
|
$ sudo apt-get install libmysqlclient-dev
|
|
|
|
$ pip install MySQL-python
|
|
|
|
|
|
|
|
The installation of MySQL-python will fail if libmysqlclient-dev is not
|
|
|
|
installed first. Note that even in a virtual environment the MySQL package will
|
2014-09-01 16:33:18 -04:00
|
|
|
be installed system wide.
|