ImportError: No module named pywintypes

后端 未结 6 1552
再見小時候
再見小時候 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:21

    I know my answer is bit late but just run to this problem. Both pywin32 and pypiwin32 is installed on my virtualenv, my app is working fine during test. When I run pyinstaller to build my exe, this error showed up.

    Solution: I needed to install (through pip) pywin32 and pypiwin32 on my base python env ( not the virtualenv) for pyinstaller to build my exe.

提交回复
热议问题