[GIS] Importing otbApplication in Python

installationorfeo-toolboxpython

I installed both otb-bin and otb-python using OSGeo4W.

In OSGeo4W Shell, I have no problem importing otbApplication.

But I have a problem doing this in Python Shell. The error message is as below:

>>> import otbApplication
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import otbApplication
ImportError: No module named otbApplication

I guess I have to configure some environmental variables, but I have no idea.

My OS is Windows 7 and the Python version is 2.7.

Best Answer

As commented by @gene you appear to be getting this error:

Because otbApplicationis not in the PYTHONPATH of QGIS (you can use import processing.algs.otb)