# OTB Python environment

**URL:** <https://forum.orfeo-toolbox.org/t/otb-python-environment/853>\
**Category:** OTB Usage\
**Created:** [November 9, 2020, 2:46pm UTC](https://forum.orfeo-toolbox.org/t/otb-python-environment/853 "2020-11-09T14:46:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BBXX](https://forum.orfeo-toolbox.org/letter_avatar_proxy/v4/letter/b/ecd19e/32.png) [@BBXX](https://forum.orfeo-toolbox.org/u/BBXX)\
**Post date:** [November 9, 2020, 2:46pm UTC](https://forum.orfeo-toolbox.org/t/otb-python-environment/853/1 "2020-11-09T14:46:18Z")

</div>

My system: Win10  
python:3.5;  
OTB Version:7.2.0

I have set PYTHONPATH to path/lib/python and the OTB\_APPLICATION\_PATH to path/lib/otb/applications.  
when I import otbApplication,I got the error message:

Python 3.5.4 |Continuum Analytics, Inc.| (default, Aug 14 2017, 13:41:13) [MSC v.1900 64 bit (AMD64)] on win32  
Type “help”, “copyright”, “credits” or “license” for more information.

> > > import otbApplication  
> > > Traceback (most recent call last):  
> > > File “D:\software\python\OTB-7.2.0-Win64\OTB-7.2.0-Win64\lib\python\otbApplication.py”, line 14, in swig\_import\_helper  
> > > return importlib.import\_module(mname)  
> > > File “D:\software\python\python3\Anaconda3\envs\otb\lib\importlib\__init_\_.py”, line 126, in import\_module  
> > > return \_bootstrap.\_gcd\_import(name[level:], package, level)  
> > > File “”, line 985, in \_gcd\_import  
> > > File “”, line 968, in \_find\_and\_load  
> > > File “”, line 957, in \_find\_and\_load\_unlocked  
> > > File “”, line 666, in \_load\_unlocked  
> > > File “”, line 577, in module\_from\_spec  
> > > File “”, line 938, in create\_module  
> > > File “”, line 222, in \_call\_with\_frames\_removed  
> > > ImportError: DLL load failed: 找不到指定的模块。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):  
File “”, line 1, in   
File “D:\software\python\OTB-7.2.0-Win64\OTB-7.2.0-Win64\lib\python\otbApplication.py”, line 17, in   
\_otbApplication = swig\_import\_helper()  
File “D:\software\python\OTB-7.2.0-Win64\OTB-7.2.0-Win64\lib\python\otbApplication.py”, line 16, in swig\_import\_helper  
return importlib.import\_module('_otbApplication’)  
File "D:\software\python\python3\Anaconda3\envs\otb\lib\importlib\_init_.py", line 126, in import\_module  
return \_bootstrap.\_gcd\_import(name[level:], package, level)  
ImportError: DLL load failed: 找不到指定的模块。

I would be grateful if anyone knew how to configure the OTB Python environment.
