Search code examples
pythonpython-import

import pytwain ModuleNotFoundError: No module named 'pytwain'


Here is my error: although I installed pytwain and it is located in C:\Users\User\Documents\systhen\myenv310\Lib, I tried working with several Python versions (3.13, 3.12, 3.10, 3.9), but the same error persists.

(myenv) C:\Users\Nesrine Belghith\Desktop\3.12.32>python app.py Traceback (most recent call last): File "C:\Users\Nesrine Belghith\Desktop\3.12.32\app.py", line 1, in import pytwain ModuleNotFoundError: No module named 'pytwain'


Solution

  • it's

    import twain

    not

    import pytwain

    Take a look at the Documentation.