黄色网页视频 I 影音先锋日日狠狠久久 I 秋霞午夜毛片 I 秋霞一二三区 I 国产成人片无码视频 I 国产 精品 自在自线 I av免费观看网站 I 日本精品久久久久中文字幕5 I 91看视频 I 看全色黄大色黄女片18 I 精品不卡一区 I 亚洲最新精品 I 欧美 激情 在线 I 人妻少妇精品久久 I 国产99视频精品免费专区 I 欧美影院 I 欧美精品在欧美一区二区少妇 I av大片网站 I 国产精品黄色片 I 888久久 I 狠狠干最新 I 看看黄色一级片 I 黄色精品久久 I 三级av在线 I 69色综合 I 国产日韩欧美91 I 亚洲精品偷拍 I 激情小说亚洲图片 I 久久国产视频精品 I 国产综合精品一区二区三区 I 色婷婷国产 I 最新成人av在线 I 国产私拍精品 I 日韩成人影音 I 日日夜夜天天综合

pyinstaller 用法

系統(tǒng) 2481 0

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

1、下載pyinstaller和 PyWin32 ?

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

2、安裝

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

3、pyinstaller使用方法

使用也非常的簡(jiǎn)單,cmd下進(jìn)入解壓出來的目錄,進(jìn)入當(dāng)前目錄,比方說解壓到d:/pyinstaller/,執(zhí)行

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

4 主要選項(xiàng)包括:

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 打包成一個(gè)exe文件。
-D, –onedir 創(chuàng)建一個(gè)目錄,包含exe文件,但會(huì)依賴很多文件(默認(rèn)選項(xiàng))。
-c, –console, –nowindowed 使用控制臺(tái),無界面(默認(rèn))
-w, –windowed, –noconsole 使用窗口,無控制臺(tái)

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

pyinstaller 用法


更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號(hào)聯(lián)系: 360901061

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

【本文對(duì)您有幫助就好】

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

發(fā)表我的評(píng)論
最新評(píng)論 總共0條評(píng)論