我正在尝试测试浏览器是否在转换为exe
with的 python 程序上打开pyinstaller
,有没有办法在不显示窗口并将其转换为的情况下测试它exe
?
我尝试了子进程,但它在 pyinstaller 的窗口模式下产生错误,我无法psutil
导入pyinstaller ("can't import psutil" error)
我使用的代码subprocess
:
enter code here
subprocess.check_output('tasklist', shell=True)
程序未启动并出现错误消息:“无法执行脚本”此处发布了类似的错误:子进程似乎在 pyinstaller exe 文件中不起作用
预先感谢您的回答