pyinstaller 编译 Python文件 可执行

pyinstaller 编译 Python文件 可执行
windows:
1)安装 Python3.7.6 到 D:\python3.76
下载安装:python-3.7.6-amd64.exe
2)安装 Pyinstaller
D:\python3.76\Scripts>pip install pyinstaller
3)安装pywin32
下载安装 pywin32-227.win-amd64-py3.7.exe
4)编译py文件
Py文件放到 D:\python3.76\Scripts
执行 D:\python3.76\Scripts>pyinstaller.exe --console --onefile win_dbbak.py
得到:exe文件 在 D:\python3.76\Scripts\dist

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容