Search code examples
pythonubuntuimportlidarliblas

How to import liblas module in Python?


I am using liblas for python to read .las file. When I enter:

from liblas import file

It gives me:

No module named liblas.

I already set up las library path in system, lasinfo is working fine. Can anyone tell me how to import las library in Python? I am using Ubuntu by the way.


Solution

  • It looks like the liblas is not properly installed or you configured the path incorrectly. Try installing the package liblas using pip or easy_install.

    $ easy_install liblas OR $ pip install liblas