[英]Pyinstaller Executable file not running properly
I have created executable using pyinstaller,when I run the executable file I get a blank cmd window that closes after seconds.我已经使用 pyinstaller 创建了可执行文件,当我运行可执行文件时,我得到一个空白 cmd window 几秒钟后关闭。
The python file works properly when I run it using python file.py in cmd当我使用cmd中的 python file.py 运行 python 文件时,它可以正常工作
if your script have no errors add an input command at the end of your script that should fix it如果您的脚本没有错误,请在脚本末尾添加一个应该修复它的输入命令
I had the same problem.我有同样的问题。
this is what I did and it works for me:这就是我所做的,它对我有用:
after后
pip install pyinstaller
just type in terminal只需输入终端
pyinstaller -F main.py
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.