zoukankan      html  css  js  c++  java
  • pyinstaller

    1. 安装 pip install pyinstaller
    2. 打包命令 

      基本语法:
      pyinstaller options myscript.py
      常用的可选参数如下:
      --onefile 将结果打包成一个可执行文件
      --onedir 将所有结果打包到一个文件夹中,该文件夹包括一个可执行文件和可执行文件执行时需要的依赖文件(默认)
      --paths=DIR 设置导入路径
      --distpath=DIR 设置将打包的结果文件放置的路径
      --specpath=DIR 设置将spec文件放置的路径
      --windowed 使用windows子系统执行,不会打开命令行(只对windows有效)
      --nowindowed 使用控制台子系统执行(默认)(只对windows有效)
      --icon=<FILE.ICO> 将file.ico添加为可执行文件的资源(只对windows有效)

      如pyinstaller --paths="D:Queena" guess_exe.py

      示例: pyinstaller -F wxy_tool.py --distpath=wxy-mtt 或 pyinstaller --onefile --icon="xxxx.ico" test.py

    3. 報錯 

      PyInstaller cannot check for assembly dependencies.

      Please install PyWin32 or pywin32-ctypes

        解決:pip install pywin32-ctypes

  • 相关阅读:
    android flash air 打包工具
    MyEclipse 7.0快捷键大全
    android mp4 videoView
    位图处理
    myeclise10.0下载
    dropdown.js
    back track
    ANE 跨平台 as3 转 objectc android desktop
    jquery 例子
    android 屏蔽 home 2
  • 原文地址:https://www.cnblogs.com/ouyangping/p/8454174.html
Copyright © 2011-2022 走看看