本文介绍: 执行python -m uiautomator2 init 命令报错提示AttributeError: module ‘re’ has no attribute ‘Pattern’
本文旨在记录学习中遇到的问题和解决办法,帮助小伙伴们快速解决同类型问题。
本人使用的是python3.6.6版本,uiautomator2 2.16.22版本
在执行python -m uiautomator2 init 出现了报错提示 AttributeError: module ‘re’ has no attribute ‘Pattern’,如下图所示:
这是由于uiautomator2版本更新,导致python3.6不兼容,需安装python3.7版本后新建项目。
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。