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