Anaconda/PYDEV 报No module named 'windows'
error:运行from pymouse import PyMouse 提示D:\software\Anaconda3\Lib\site-packages\pymouse\__init__.py", line 92, in <module>
from windows import PyMouse, PyMouseEvent
ImportError: No module named 'windows'
原因:少装了pymouse
解决办法:
pip install PyMousepip install pyuserinput
附:eclipse安装的PYDEV也是包这个错误时
在eclipse里找到python的环境设置(window->preference->pydev->interpreters->python interpreters)然后执行install/Uninstall with pip。命令还是上面那2句,不过不用pip。成功后重启eclipse后可以正常导入pymouse的包不报错