Forum Discussion

yxx1411's avatar
yxx1411
New Contributor
2 years ago

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'"

 

 

 

3 Replies

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    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

     

  • rraghvani's avatar
    rraghvani
    Champion Level 3

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