你的py文件转换成linux可执行程序

pyinstaller --onefile script.py

pyinstaller [option] mypython.spec 生成一个dist文件夹