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'提示了