1:安装pyinstaller
pip install pyinstaller
1,先写一个hello.py
print('hello world!') input()
2.执行(在script文件夹下)
pyinstaller -F ../project/hello.py