新建setup.py
from cx_Freeze import setup, Executable
setup(
name="jkj专用",
version="0.1",
description="金凯健私人专用身份证号码工具",
executables=[Executable("D:\\pycharm_git_2\\main\\practice\\JKJ\\Random_person_info.py")]
)
命令行执行
python setup.py build
如果没有放到根目录:
python D:\pycharm_git_2\main\practice\JKJ\setup.py build