要想在没有安装Python集成环境的电脑上运行开发的Python程序,必须把Python文件打包成.exe格式的可执行文件
1、需要依赖文件才能运行,称为ondir方式
pyinstaller 应用程序
例如
pyinstaller Hello.py
2、单独的.exe即可执行,称为onefile方式
pyinstaller 应用程序
例如:
pyinstaller -F Hello.py
要想在没有安装Python集成环境的电脑上运行开发的Python程序,必须把Python文件打包成.exe格式的可执行文件
1、需要依赖文件才能运行,称为ondir方式
pyinstaller 应用程序
例如
pyinstaller Hello.py
2、单独的.exe即可执行,称为onefile方式
pyinstaller 应用程序
例如:
pyinstaller -F Hello.py