PyHook on python 3.5

点点圈 提交于 2019-12-19 18:16:36

问题


I am trying to write a basic keylogging program on python. I need to install the pywin32 and pyhook modules. I have managed to get pywin32 installed, but cannot seem to pyhook to work. I have read its possible to get it to work on later versions of python, but cannot seem to figure it out. I have tried both .exe and .whl installs. Using whl in cmd gives error that the wheel is not supported. Does anyone have a solution to install pyhook on python 3.5. Thanks


回答1:


This is how I did it...

  1. Download the py hook module that matches your version of python from here. Make sure that if you have python 32 bit you download the 32 bit module (even if you have windows 64x) and vice versa.

  2. Open your command prompt and navigate to the folder where you downloaded the module

  3. Type "pip install " and then the name of the file.

    Ex: "pip install pyHook-1.5.1-cp27-none-win32.whl"

Note : you need pip




回答2:


If your pip install have not success. Try -> when you download a pyHook-1.5.1-cp27-none-win32.whl file from http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyhook After that move file to Programs\Python\Python35-32\Scripts path and then pip install pyHook-1.5.1-cp27-none-win32.whl I hope my answer is useful for you.



来源:https://stackoverflow.com/questions/35202087/pyhook-on-python-3-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!