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.

有帮助吗?

解决方案

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

其他提示

I had the same problem.

After installing the module liblas, I tried to import it but it failed everytime.

What you can do:

  1. Go to the folder which contains your download liblas folder (for me: /Users/blablabla/anaconda/lib/python2.7/site-packages/libLAS-1.6.0-py2.7.egg). This folder contains 2 folders: EGG-INFO and liblas.
  2. Copy-paste liblas (the folder) into the parent folder (site-packages).

Now go to Python, and import liblas. It should work.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top