zoukankan      html  css  js  c++  java
  • 【Python3.6】python打包成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_testui.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:pythonlibsite-packagesPyInstallerootloaderWindows-64bit unw.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_testdistui.exe 284 INFO: Building EXE from out00-EXE.toc completed successfully.
    pyinstaller -F -w ui.py,如果不加参数-w,则生成的exe文件在执行时,会默认打开控制台。



  • 相关阅读:
    异常处理
    组合,封装
    自我介绍
    27python更多实例
    28python类代码编写细节
    29python运算符重载
    30python 类的设计
    31python类的高级主题
    32python异常基础
    33python异常编码细节
  • 原文地址:https://www.cnblogs.com/BH8ANK/p/10792675.html
Copyright © 2011-2022 走看看