I tried to install pyHook, but all I seem to get when I try to run my program in the python shell to test it is this.

ImportError: No module named pyHook

I keep trying, and I have PyWin32, so I tried to install it like that by typing into admin cmd:

start python.exe Scripts\pyHook_postinstall -install

Nope. It still isn't installed. How can I get the module to actually be usable?

Recommended Answers

All 5 Replies

In windows OS, the best solution is often to install a module from Christoph Gohlke's python binaries for windows. PyHook is <Here>.

Edit: Download the wheel file (.whl), then type pip install <filename.whl>

I have downloaded the .whl file, so I'll try that. Thanks!
Results: I tried to do that with my cmd, and got this:

'pip' is not recognized as an internal or external command, operable program or batch file.

By the way, if it changes anything, I am running Windows 8 on my computer.

Install pip first, by following the instructions given <here>.

Hey, by the way, my pywin32 actually did not install by the cmd that I put in, but I used pip to get it, so it's installed now.

T
H
A
N
K

Y
O
U
!
!
!
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.