No Such Module Found (pywinhook)

Answered

I need to use pywinhook.

I can download and install it only using the admin Anaconda console from Anaconda Cloud: 'conda install -c conda-forge pywinhook'

pywinhook shows in PyCharm project interpreter as being installed in the environment, but every single time I go to use it in a script I get "no module named pywinhook."

The file path for Anaconda3 is in the environmental variables. Other modules are found no problem.

I only want to use the conda environment.

3 comments
Comment actions Permalink

Hi,

Please try importing this module from the system terminal (outside of PyCharm) using the same interpreter. Do you have the same problem?

 

0
Comment actions Permalink

It turned out that the pywinhook needs to be imported using "pyWinhook" with a capital. W. Not mentioned in the pywinhook documentation.

0
Comment actions Permalink

Ok, thanks for letting me know.

0

Please sign in to leave a comment.