编写一个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