I got the following error message when trying to install osmium
:
$ pip install osmium --user
[...]
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-hjt_5k/osmium/setup.py", line 115, in <module>
raise Exception("Cannot find boost_python library")
Exception: Cannot find boost_python library
How can I fix it?
The fix for that issue on Ubuntu 16.04 is
$ sudo apt-get install libboost-python-dev
libosmium-2.14.2/include/osmium/io/bzip2_compression.hpp:52:19: fatal error: bzlib.h: No such file or directory
compilation terminated.
error: command 'c++' failed with exit status 1
is fixed with
sudo apt-get install libbz2-dev