700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > pyinstaller打包报错 Failed to execute script ‘xxx‘ due to unhandled exception:input():lost sys.stdin

pyinstaller打包报错 Failed to execute script ‘xxx‘ due to unhandled exception:input():lost sys.stdin

时间:2019-06-06 20:10:35

相关推荐

pyinstaller打包报错 Failed to execute script ‘xxx‘ due to unhandled exception:input():lost sys.stdin

pyinstaller打包报错 Failed to execute script ‘xxx’ due to unhandled exception:input():lost sys.stdin

pyinstaller打包exe文件,打开exe报错 Failed to execute script ‘xxx’ due to unhandled exception:input():lost sys.stdin Failed to obtain/convert traceback!

是因为在打包的时候使用了参数 -w,即无控制台窗口模式,导致需要命令行输入时无法执行并报错。

解决办法,使用打包命令: pyinstaller -F xxx.py,或写成 pyinstaller -F -c xxx.py(-c参数使用控制台子系统执行,默认方式)。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。