Py2Exe簡單應用

2021-04-12 23:12:00 字數 514 閱讀 4392

編寫乙個setup.py

from distutils.core import setup

import py3exe

setup(

# the first three parameters are not required, if at least a

# 'version' is given, then a versioninfo resource is built from

# them and added to the executables.

version = "0.1.0",

description = "serial2telnet",

name = "serial2telnet",

console = ["main.py"],

) py3exe修改了py2exe中不認中文路徑的問題

再編寫乙個build.bat

python setup.py py2exe

pause

done

py2exe打包問題

最近在使用python打包的時候出現很多問題 1 python程式中使用到的問題 資料庫問題 解決方法 將程式打包後,將檔案拷貝到執行檔案下。2 報錯 由於應用程式配置不正確.我拷貝exe檔案到多台電腦上執行,只有一台執行不成功,google知道是缺少dll檔案。解決方法 按照的方法依然存在問題,提...

py2exe轉換引數

在公司用python寫了個統計資料並通過xlsxwriter模組生成excel的小工具,完成後使用py2exe轉換成exe檔案過程中遇到了些問題,記錄下.from distutils.core import setup import sys includes xlsxwriter options s...

py2exe試用小結

distutils.core import setup import py2exe opts setup version 0.1.0 description py2exewxauitest name wxaui options opts,zipfile none,windows aui.py 執行這...