python3 -m uiautomator2 init 报错解决


今天想学习下uiautomator2 模块,但是第一步就卡住了,python3 -m uiautomator2 init 初始化的时候报错了,报错信息如下
image.png
主要是 ConnectionRefusedError: [Errno 61] Connection refused 连接被拒绝。
解决办法 卸载原来的uiautomator2 模块 重新安装 然后在执行 python3 -m uiautomator2 init

问题解决
卸载

pip3 uninstall   uiautomator2

image.png

重装

 pip3 install --pre uiautomator2 

image.png
最后

 python3 -m uiautomator2 init

image.png


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM