Installing with pip: please set LZO_DIR to where the lzo source lives

2k Views Asked by At

I tried to install bx-python (https://github.com/bxlab/bx-python) with pip

pip install bx-python

from my anaconda path. The exception I got was

Exception: please set LZO_DIR to where the lzo source lives

I am not sure where this lzo source is living and why I have to set it.

Could you explain me why this error is happening and how to fix it? Thanks!

Python 2.7 on Windows

1

There are 1 best solutions below

1
phd On

You need lzo sources because bx-python depends on python-lzo and python-lzo is only distributed in source form in C hence pip wants to compile it and for compilation python-lzo requires lzo sources. You have to install liblzo2.