pyinstaller-FE:\Python\studentsystem\studentsystem.py354I" />

日韩久久久精品,亚洲精品久久久久久久久久久,亚洲欧美一区二区三区国产精品 ,一区二区福利

python文件打包為.exe可執(zhí)行文件

系統(tǒng) 1825 0

一?點(diǎn)睛

Python項(xiàng)目打包需要安裝PyInstaller模塊。

python文件打包為.exe可執(zhí)行文件_第1張圖片

二?打包

1?CMD命令進(jìn)入命令行

2?在命令行執(zhí)行如下語句:

            
              pyinstaller -F E:\Python\studentsystem\studentsystem.py
            
          

其中-F?表示只生成一個擴(kuò)展名為.exe的可執(zhí)行文件。

執(zhí)行結(jié)果如下:

            
              (venv) E:\Python\studentsystem>pyinstaller -F E:\Python\studentsystem\studentsystem.py
354 INFO: PyInstaller: 3.4
354 INFO: Python: 3.6.7
355 INFO: Platform: Windows-10-10.0.17134-SP0
356 INFO: wrote E:\Python\studentsystem\studentsystem.spec
366 INFO: UPX is not available.
370 INFO: Extending PYTHONPATH with paths
['E:\\Python\\studentsystem', 'E:\\Python\\studentsystem']
371 INFO: checking Analysis
371 INFO: Building Analysis because Analysis-00.toc is non existent
371 INFO: Initializing module dependency graph...
374 INFO: Initializing module graph hooks...
376 INFO: Analyzing base_library.zip ...
3833 INFO: running Analysis Analysis-00.toc
3894 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
  required by E:\Python\studentsystem\venv\Scripts\python.exe
4603 INFO: Caching module hooks...
4610 INFO: Analyzing E:\Python\studentsystem\studentsystem.py
4650 INFO: Loading module hooks...
4650 INFO: Loading module hook "hook-encodings.py"...
4794 INFO: Loading module hook "hook-pydoc.py"...
4797 INFO: Loading module hook "hook-xml.py"...
5039 INFO: Looking for ctypes DLLs
5039 INFO: Analyzing run-time hooks ...
5043 INFO: Looking for dynamic libraries
5260 INFO: Looking for eggs
5260 INFO: Using Python library E:\Python\studentsystem\venv\Scripts\python36.dll
5261 INFO: Found binding redirects:
[]
5265 INFO: Warnings written to E:\Python\studentsystem\build\studentsystem\warn-studentsystem.txt
5298 INFO: Graph cross-reference written to E:\Python\studentsystem\build\studentsystem\xref-studentsystem.html
5317 INFO: checking PYZ
5318 INFO: Building PYZ because PYZ-00.toc is non existent
5318 INFO: Building PYZ (ZlibArchive) E:\Python\studentsystem\build\studentsystem\PYZ-00.pyz
5718 INFO: Building PYZ (ZlibArchive) E:\Python\studentsystem\build\studentsystem\PYZ-00.pyz completed successfully.
5722 INFO: checking PKG
5723 INFO: Building PKG because PKG-00.toc is non existent
5723 INFO: Building PKG (CArchive) PKG-00.pkg
7957 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
7965 INFO: Bootloader E:\Python\studentsystem\venv\lib\site-packages\PyInstaller\bootloader\Windows-64bit\run.exe
7967 INFO: checking EXE
7967 INFO: Building EXE because EXE-00.toc is non existent
7968 INFO: Building EXE from EXE-00.toc
7969 INFO: Appending archive to EXE E:\Python\studentsystem\dist\studentsystem.exe
8000 INFO: Building EXE from EXE-00.toc completed successfully.
            
          

三?驗(yàn)證

python文件打包為.exe可執(zhí)行文件_第2張圖片

?

?


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

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯(lián)系: 360901061

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

【本文對您有幫助就好】

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

發(fā)表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 平塘县| 洛扎县| 奉新县| 靖江市| 绥中县| 昌江| 平远县| 高青县| 吴桥县| 深水埗区| 宁津县| 临汾市| 阿克苏市| 堆龙德庆县| 临武县| 望都县| 乌鲁木齐市| 茂名市| 临夏市| 海宁市| 天长市| 穆棱市| 通江县| 银川市| 宁阳县| 碌曲县| 临沭县| 普宁市| 灵川县| 乐陵市| 图们市| 亳州市| 大同市| 林芝县| 乡宁县| 留坝县| 高雄县| 安龙县| 灵武市| 汕头市| 华蓥市|