문제

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