首页
Java
登录
6mi
u
盘
搜
搜 索
Java
pyinstaller打包后的exe运行怎么去掉弹出的dos窗口
pyinstaller打包后的exe运行怎么去掉弹出的dos窗口
xiaoxiao
2021-02-27
181
1.
windows平台的话,先把.py改成.pyw。
2.如果是直接指定python文件进行pyinstaller打包的话,需要添加--noconsole
pyinstaller
tools2
.
py
--
noconsole
3.如果想只打包成一个exe pyinstaller -F tools2.py --noconsole
或
pyinstaller -F -w tools2.py
更换最终exe生成路径
在cmd中,一开始就要 cd D:\temp\ 切换到输出文件夹,然后在用上面的代码
转载请注明原文地址: https://www.6miu.com/read-13496.html
技术
最新回复
(
0
)