adbutils 的安装 | 珊瑚贝

adbutils 是 Python 中 adb 命令行的封装包。

相关链接

安装方法

pip 安装

推荐使用 pip3 安装,命令如下:

1
pip3 install adbutils

命令执行完毕之后即可完成安装。

验证安装

安装完成之后,可以在 Python 命令行下测试,另外确保你的手机已经和电脑通过 USB 或无线的方式连接好了,运行如下代码:

1
2
3
4
import adbutils

adb = adbutils.AdbClient(host="127.0.0.1", port=5037)
print(adb.devices())

如果没有错误报出,而且输出了 Device 相关信息,则证明库已经安装好了。

来源:https://cuiqingcai.com/31079.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_11164.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?