可以手动安装下apk,我是卸载之后,输入命令不会重新安装。
https://github.com/openatx/android-uiautomator-server/releases
找一个版本跟你uiautomator2版本一致的apk手动安装即可,再执行
python -m uiautomator2 init