linux (centos 7.5) 下使用python 2.7 打包

1、安装pip

安装pip2 20.0版本

curl "https://bootstrap.pypa.io/pip/2.7/get-pip.py" -o "get-pip.py"
python get-pip.py

2、安装 pyinstaller 
python 安装最好的pyintaller 版本为3.4
pip install pyinstaller==3.4

3、打包

pyinstaller -F spy.py

posted @ 2022-09-08 17:52  leolzi  阅读(65)  评论(0编辑  收藏  举报