Ask a Question

Python runtime error. ModuleNotFoundError: No module named 'win32api'

yxx1411
New Contributor

Python runtime error. ModuleNotFoundError: No module named 'win32api'

hello, I  had some trouble, I call a third-party library tips "Python runtime error. ModuleNotFoundError: No module named 'win32api'"

yxx1411_0-1660013407422.png

 

 

 

3 REPLIES 3
rraghvani
Trusted Contributor

See Python - Specifics of Usage. Depending on the version of TestComplete you're using, it will support a specific version of Python.

 

The following example, will import the library.

from os import sys
sys.path.insert(0, '%PYTHON_PATH%\Lib\site-packages')

import yourModuleName

 

I tried and failed

rraghvani
Trusted Contributor

What version of TestComplete and Python are you using? Could you also provide the code you are using?

cancel
Showing results for 
Search instead for 
Did you mean: