下载网站:https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyhook
查看python版本
C:UserskDesktopfile_trans>pip -V pip 19.1.1 from c:userskanaconda3libsite-packagespip (python 3.5)
下载对应版本,我的是,win10 64位系统,python3.5
下载后,打开cmd命令行,输入
pip install
然后把下载的文件拖拽到命令行窗口。再回车
C:UserskDesktopfile_trans>pip install C:UserskDownloadspyHook-1.5.1-cp35-cp35m-win_amd64.whl Processing c:userskdownloadspyhook-1.5.1-cp35-cp35m-win_amd64.whl Installing collected packages: pyHook Successfully installed pyHook-1.5.1 C:UserskDesktopfile_trans>
即可安装成功。