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

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

python文件打包為.exe可執行文件

系統 1741 0

一?點睛

Python項目打包需要安裝PyInstaller模塊。

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

二?打包

1?CMD命令進入命令行

2?在命令行執行如下語句:

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

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

執行結果如下:

            
              (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.
            
          

三?驗證

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

?

?


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

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

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

【本文對您有幫助就好】

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

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 江孜县| 奈曼旗| 盘山县| 宜兰县| 五原县| 丰顺县| 剑河县| 泰州市| 金堂县| 饶平县| 鸡东县| 界首市| 大名县| 绩溪县| 敖汉旗| 卫辉市| 竹溪县| 宁明县| 涟源市| 濮阳县| 天镇县| 衡阳市| 青阳县| 乌审旗| 铁岭市| 黄石市| 会东县| 安庆市| 长治市| 任丘市| 射阳县| 古蔺县| 离岛区| 德令哈市| 虎林市| 盖州市| 黎城县| 革吉县| 河西区| 通州区| 寿宁县|