python pyinstaller 打包exe uiautomator2

测试脚本-ceshi6.py:

import uiautomator2 as u2

d = u2.connect('192.168.1.122')

打包脚本:
import os

with os.popen(r'pyinstaller -F ceshi6.py', 'r') as f:
text = f.read()

pycharm 运行脚本正常

执行打包后的exe执行文件出现错误:

图片说明

q 920823455

https://blog.csdn.net/weixin_39540280/article/details/85249816
http://blog.sina.com.cn/s/blog_a60b1c3c0102xqzw.html

这个应该是环境的问题,打包后给别人用别人要有adb连接手机并且连接uiautomator2,但是不太清楚怎么样才能一起打包过来