欧美三区_成人在线免费观看视频_欧美极品少妇xxxxⅹ免费视频_a级毛片免费播放_鲁一鲁中文字幕久久_亚洲一级特黄

pyinstaller 用法

系統 2153 0

參考: http://pythonhosted.org/PyInstaller/#installing-pyinstaller

1、下載pyinstaller和 PyWin32 ?

目前pyinstaller支持的python版本為2.3-2.7,可以到http://www.pyinstaller.org/官網下載。注意 PyWin32 ?對應不太的python版本

2、安裝

pyinstaller 下載完成后,解壓即可。 PyWin32 ?安裝

3、pyinstaller使用方法

使用也非常的簡單,cmd下進入解壓出來的目錄,進入當前目錄,比方說解壓到d:/pyinstaller/,執行

    方法一:當前目錄下沒有spec文件,執行
    
python pyinstaller.py [opts] yourprogram.py
  • 方括號[]里面為可選項,
  • 執行目錄后,在d:/pyinstaller/目錄里面生成一個your-program/dist子目錄,你有用的文件就放在這里了,
  • 同時生成一個your-program/your-program.spec文件
  • 同時生成一個your-program/build,里面存放buid文件(中間件)
  • 如果程序不在“d:/pyinstaller/”里面,指定程序的路徑,spec,dist,buid目錄文件將在當前目錄下生成
    方法一:當前目錄下有spec文件,執行
    
python pyinstaller.py [opts] your-program.spec

4 主要選項包括:

Allowed OPTIONS are :
-h, --help show this help message and exit
-v, --version show program version
--upx-dir=UPX_DIR Directory containing UPX.
-a, --ascii do NOT include unicode encodings (default:
included if available)
--buildpath=BUILDPATH Buildpath (default:
SPECPATH/build/pyi.TARGET_PLATFORM/SPECNAME)

-y, --noconfirm Remove output directory (default:
SPECPATH/dist/SPECNAME) without
confirmation
--log-level=LOGLEVEL Log level (default: INFO, choose one of DEBUG,
INFO, WARN, ERROR, CRITICAL

What to generate:

-F, --onefile create a single file deployment

-D, --onedir create a single directory deployment (default)
-o DIR, --out=DIR create the spec file in directory. If not specified,
and the current directory is Installer's root
directory, an output subdirectory will be created.
Otherwise the current directory is used.
-n NAME, --name=NAME optional name to assign to the project (from which
          the spec file name is generated). If omitted, the
basename of the (first) script is used.

?

-F, –onefile 打包成一個exe文件。
-D, –onedir 創建一個目錄,包含exe文件,但會依賴很多文件(默認選項)。
-c, –console, –nowindowed 使用控制臺,無界面(默認)
-w, –windowed, –noconsole 使用窗口,無控制臺

具體參考PyInstaller安裝目錄下的PyInstaller Manual

pyinstaller 用法


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 日本人69视频jizz免费看 | 日日操夜夜透 | 久久99精品亚洲热综合 | 午夜网站入口 | 视频成人永久免费视频 | 久久在线播放 | 亚洲伊人网站 | 九九热在线精品视频 | 国产亚洲精品久久精品录音 | av在线一区二区三区 | 一个看片免费视频www | 日日摸夜夜添免费毛片小说 | 亚洲免费一区二区 | 一级片性 | 精品欧美 | 91在线观看视频 | 亚洲日本在线观看视频 | 黄色中文字幕 | 国产精品国产a | 国产激爽大片高清在线观看 | 日韩免费福利视频 | 国产日韩一区二区三免费高清 | 成人在线精品视频 | 国产日韩一区二区三区在线观看 | 免费黄色在线观看 | 一级片国产片 | 亚洲欧美成人中文在线网站 | 亚洲国产视频一区 | 久久日本精品在线热 | 人人亚洲| 日本一级高清不卡视频在线 | 欧美在线激情 | 国产高清在线看 | 欧美日韩一区视频 | 草草网| 亚洲性人人天天夜夜摸 | 91电影 | 欧美成年网站 | 日韩电影免费在线观看中文字幕 | 色www精品视频在线观看 | 日韩在线短视频 |