PyUserInput--控制键盘和鼠标模块
1.访问https://www.lfd.uci.edu/~gohlke/pythonlibs/下载pyHook的.whl文件,要下载与当前环境对应的python版本
(备注:如果不去下载.whl文件可能会报错Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools
另一种解决方法时安装Microsoft Visual C++环境)
pyHook-1.5.1-cp36-cp36m-win_amd64.whl cp36表示python3.6版本
2.本地安装pyHook
pip install pyHook-1.5.1-cp36-cp36m-win_amd64.whl
3.安装PyUserInput
pip install PyUserInput
from pymouse import PyMouse
from pykeyboard import PyKeyboard