我正在 Python 3.8 中设置一个自动点击器,我需要 win32api 来获取 GetAsyncKeyState 但它总是给我这个错误:
>>> import win32api
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: DLL load failed while importing win32api: The specified module could not be found.
Run Code Online (Sandbox Code Playgroud)
我使用的是 Windows 10 Home 64x。我已经试过了
pip install pypiwin32
Run Code Online (Sandbox Code Playgroud)
它成功安装但没有任何变化。我也尝试卸载并重新安装python。我也尝试以相同的方式安装 'django' 并且它在我时确实有效import django,所以我认为这只是一个 win32api 问题。
>>> import win32api
Run Code Online (Sandbox Code Playgroud)
我希望输出没有,但实际输出总是那个错误^^