Python3.6python打包成exe

Posted bh8ank

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Python3.6python打包成exe相关的知识,希望对你有一定的参考价值。

 

 

D:\python_test>pip3 install pyinstaller
……
……
D:\python_test>pyinstaller -F -w ui.py 84 INFO: PyInstaller: 3.3.1 85 INFO: Python: 3.6.4 88 INFO: Platform: Windows-10-10.0.15063-SP0 93 INFO: wrote D:\python_test\ui.spec 94 INFO: UPX is not available. 97 INFO: Extending PYTHONPATH with paths [D:\\python_test] 101 INFO: checking Analysis 178 INFO: checking PYZ 191 INFO: checking PKG 246 INFO: Bootloader d:\python\lib\site-packages\PyInstaller\bootloader\Windows-64bit\runw.exe 246 INFO: checking EXE 260 INFO: Building because console changed 260 INFO: Building EXE from out00-EXE.toc 267 INFO: Appending archive to EXE D:\python_test\dist\ui.exe 284 INFO: Building EXE from out00-EXE.toc completed successfully.
pyinstaller -F -w ui.py,如果不加参数-w,则生成的exe文件在执行时,会默认打开控制台。



以上是关于Python3.6python打包成exe的主要内容,如果未能解决你的问题,请参考以下文章

DELPHI怎么打包成EXE文件的?

如何将Python写的代码打包成.exe可执行文件

如何将Python写的代码打包成.exe可执行文件

python selenium代码如何打包成.exe文件(Pyinstaller)

将py文件打包成exe可执行文件

python:打包成exe程序