Python -- 打包


@、打包成egg文件

原文:

https://blog.csdn.net/caiguoxiong0101/article/details/50285279

1、首先在项目目录下创建setup.py文件,按照以上连接说明根据项目编写setup.py文件

2、使用命令打包:python setup.py bdist_egg

@、使用pyinstaller 打包成exe

1、安装:pip install pyinstaller

2、打包:pyinstaller -F xxx.py      其中xxx.py为入口文件