ImportError: No module named pywintypes

后端 未结 6 1543
再見小時候
再見小時候 2020-12-15 23:10

I am working to make a small keylogger with Python, by using the pyHook, pythoncom and Pywin32 modules. Here is my code:

import pyHook, pythoncom, sys, loggi         


        
6条回答
  •  执笔经年
    2020-12-15 23:33

    For me it worked to copy the files (pythoncom38.dll and pywintypes38.dll) from:

    C:\Users\"Your user id"\AppData\Roaming\Python\Python38\site-packages\pywin32_system32
    

    To the path:

    C:\Users\"Your user id"\AppData\Roaming\Python\Python38\site-packages\win32\lib
    

    and

    C:\Users\"Your user id"\AppData\Roaming\Python\Python38\site-packages\win32
    
    • After installation of Visual Studio, I need sometimes to restart computer after copy the files.

提交回复
热议问题