测试脚本-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执行文件出现错误: