问题一:最后enter键这里提示无法调用是为什么?看了一下也没变量名是enter_key造成冲突呀。
问题二:然后我以为是没有安装pywin32(因为我第一次安装pyHook是没报错的,所以没有进行这一步) ,就重新下载安装了一下,结果第一次安装失败,报的是拒绝访问的错误,现在再安装就会报以下错误(而且现在运行send_head.py就直接报错 ModuleNotFoundError: No module named ‘pywin32_bootstrap’):
E:\Anaconda3>pip install pywin32-226-cp37-cp37m-win_amd64.whl
Error processing line 7 of e:\anaconda3\lib\site-packages\pywin32.pth:
Traceback (most recent call last):
File “e:\anaconda3\lib\site.py”, line 168, in addpackage
exec(line)
File “”, line 1, in
ModuleNotFoundError: No module named ‘pywin32_bootstrap’
Remainder of file ignored
Requirement already satisfied: pywin32==226 from file:///E:/Anaconda3/pywin32-226-cp37-cp37m-win_amd64.whl in e:\anaconda3\lib\site-packages (226)