zoukankan      html  css  js  c++  java
  • pyinstaller3.2.1打包python27EXE

    做个记录,下载pyinstaller3.2.1。http://www.pyinstaller.org/  pycharm安装pyinstaller,执行:

    C:1PyInstaller-3.2.1>py -2 pyinstaller.py
    usage: pyinstaller.py [-h] [-v] [-D] [-F] [--specpath DIR] [-n NAME]
                          [--add-data <SRC;DEST or SRC:DEST>]
                          [--add-binary <SRC;DEST or SRC:DEST>] [-p DIR]
                          [--hidden-import MODULENAME]
                          [--additional-hooks-dir HOOKSPATH]
                          [--runtime-hook RUNTIME_HOOKS]
                          [--exclude-module EXCLUDES] [--key KEY] [-d] [-s]
                          [--noupx] [-c] [-w]
                          [-i <FILE.ico or FILE.exe,ID or FILE.icns>]
                          [--version-file FILE] [-m <FILE or XML>] [-r RESOURCE]
                          [--uac-admin] [--uac-uiaccess]
                          [--win-private-assemblies] [--win-no-prefer-redirects]
                          [--osx-bundle-identifier BUNDLE_IDENTIFIER]
                          [--distpath DIR] [--workpath WORKPATH] [-y]
                          [--upx-dir UPX_DIR] [-a] [--clean] [--log-level LEVEL]
                          [--upx UPX]
                          scriptname [scriptname ...]
    pyinstaller.py: error: too few arguments

    C:1PyInstaller-3.2.1>py -2 pyinstaller.py --console --onefile xxx.py  成功编译单独的EXE。

    C:PyInstaller-3.2.1>py -3 pyinstaller.py --console --icon="my.ico" --onefile main9.py

  • 相关阅读:
    SpringRMI解析3-RmiServiceExporter逻辑细节
    SpringRMI解析2-RmiServiceExporter逻辑脉络
    SpringRMI解析1-使用示例
    SpringMVC解析5-DispatcherServlet逻辑细节
    SpringMVC解析4-DispatcherServlet逻辑脉络
    SpringMVC解析3-DispatcherServlet组件初始化
    SpringMVC解析2-ContextLoaderListener
    算法笔记_074:子集和问题(Java)
    算法笔记_073:哈密顿回路问题(Java)
    算法笔记_072:N皇后问题(Java)
  • 原文地址:https://www.cnblogs.com/sakura404/p/6393864.html
Copyright © 2011-2022 走看看