支持情况
1.python2.7
2.python3.5以上
pyinstaller
使用pip install pyinstaller安装
使用pyinstaller将py文件打包成exe文件
pyinstaller -w tcpserver.py
执行以上命令后会生成build及dist目录,里面有tcpserver.exe文件
pyinstaller -F tcpserver.py
则在dist目录下只生成一个文件,即tcpserver.exe
其他参数时候(-F除外)dist目录下还会生成一些动态库等