美文网首页
python3 -m uiautomator2 init 报错解

python3 -m uiautomator2 init 报错解

作者: 王镇_ee87 | 来源:发表于2021-01-07 10:49 被阅读0次

今天想学习下uiautomator2 模块,但是第一步就卡住了,python3 -m uiautomator2 init 初始化的时候报错了,报错信息如下

image.png
主要是 ConnectionRefusedError: [Errno 61] Connection refused 连接被拒绝。
问题原因: 因为我以前下过uiautomator2,可能是我以前的uiautomator2版本太低了 卸载了 重新装一下就好了
解决
  1. 卸载
pip3 uninstall   uiautomator2
image.png
  1. 重装
 pip3 install --pre uiautomator2 
image.png
  1. 最后
 python3 -m uiautomator2 init

image.png

相关文章

网友评论

      本文标题:python3 -m uiautomator2 init 报错解

      本文链接:https://www.haomeiwen.com/subject/hmdnoktx.html