Python:ModuleNotFoundError: No module named 'windows'

Python:ModuleNotFoundError: No module named 'windows'

之前解决了的pymouse的安装后,又出现了ModuleNotFoundError: No module named 'windows'的错误

于是,去百度发现少了pyuserinput这个工具

于是乎,就pip install pyuserinput,结果又悲剧了

Collecting pyuserinput

Downloading https://files.pythonhosted.org/packages/d0/09/17fe0b16c7eeb52d6c14e904596ddde82503aeee268330120b595bf22d7b/PyUserInput-0.1.11.tar.gz
Collecting pyHook (from pyuserinput)
  Could not find a version that satisfies the requirement pyHook (from pyuserinput) (from versions: )
No matching distribution found for pyHook (from pyuserinput)

所以又继续度娘:https://blog.csdn.net/ligang_csdn/article/details/54667295

博主提供了一个网站查找pyhook

http://www.lfd.uci.edu/~gohlke/pythonlibs/

刚开始看的时候一堆东西,我也是懵的,不过好在可以快速查询,ctrl+f

输入pyhook果然找到对应的pyhook了,下载对应版本的

然后

pip install D:\Desktop\Download\pyHook-1.5.1-cp37-cp37m-win_amd64.whl

红色为下载的路径,直接在文件夹拖pyHook-1.5.1-cp37-cp37m-win_amd64.whl进cmd就可以了,及其方便。

 Running setup.py install for PyUserinput ... done
Successfully installed PyUserinput-0.1.11

至此,pyhook安装成功

继续安装pyuserinput

pip install PyUserinput

  Running setup.py install for PyUserinput ... done
Successfully installed PyUserinput-0.1.11

至此,pyuserinput安装成功,运行文件果然没有ModuleNotFoundError: No module named 'windows'提示了

猜你喜欢

转载自blog.csdn.net/weixin_38917807/article/details/81667041