You can download the pyHook library from http://sourceforge.net/projects/pyhook/files/pyhook/1.5.1/ and install it easily following the on-screen instructions.
Installing pyHook and pywin
Make sure that you do not have another Python instance running in the background or you will get an error during installation.
The pywin library can also be installed in the same manner. You can download the library from https://sourceforge.net/projects/pywin32/files/pywin32/Build%20219/.
Get Python for Offensive PenTest now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.