python pyautogui AttributeError: module 'pyscreeze' has no attribute 'locateOnWindow'

python pyautogui AttributeError: module 'pyscreeze' has no attribute 'locateOnWindow'

安装好pyautogui 后测试脚本报错如标题
这个报错百度查询是版本过高导致的,于是尝试降低版本解决

#卸载原先版本
pip uninstall pyautogui

#安装指定版本
pip install -i https://mirrors.aliyun.com/pypi/simple/  pyautogui==0.9.50

然后进行测试发现可以了
pyautogui 的起步可以参考 pyautogui快速起步

posted @ 2023-10-12 08:50  liwenchao1995  阅读(90)  评论(0编辑  收藏  举报