Installation ============ Requirements ------------ Imposm runs with Python 2.5, 2.6 and 2.7 and is tested on Linux and Mac OS X. Other dependencies are: - `psycopg2 `_: PostgreSQL adapter for Python - `Tokyo Cabinet `_: File-based key-value database for the internal cache - `Google Protobuf `_: PBF parsing library - `GEOS `_ Geospatial geometries library Some parts are written as a C extension and so you need to have a C/C++ compiler and the Python header files. Imposm also requires the following Python packages: - `imposm.parser `_: XML and PBF parsing sub-package - `Shapely `_: Python bindings for GEOS These Python packages will be installed automatically when you install imposm with ``pip`` or ``easy_install`` (see below). To install all requirements on Ubuntu:: sudo aptitude install build-essential python-dev protobuf-compiler \ libprotobuf-dev libtokyocabinet-dev python-psycopg2 \ libgeos-c1 Installation ------------ Imposm is registered at the `Python Package Index `_ and you can install it with ``pip`` or ``easy_install``. :: sudo aptitude install python-pip sudo pip install imposm You should now be able to start Imposm:: imposm --help virtualenv ~~~~~~~~~~ It is recommended to install Imposm into a `virtual Python environment `_, especially if you are also running other Python based software. On Ubuntu:: sudo aptitude install python-virtualenv virtualenv venv venv/bin/pip install imposm You can then start Imposm from directly your virtual environment:: venv/bin/imposm --help .. _`venv`: http://pypi.python.org/pypi/virtualenv Optional packages ----------------- Shapely Speedups ~~~~~~~~~~~~~~~~ It is recommended to install the `shapely_speedups `_ package for larger imports. Installation requires GEOS header files. :: sudo aptitude install libgeos-dev pip install https://github.com/olt/shapely_speedups/tarball/master Imposm automatically detects the presence of that package and will use it.