美文网首页
pyinstaller 编译 Python文件 可执行

pyinstaller 编译 Python文件 可执行

作者: 青梅煮酒2022 | 来源:发表于2020-04-14 08:48 被阅读0次

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

相关文章

网友评论

      本文标题:pyinstaller 编译 Python文件 可执行

      本文链接:https://www.haomeiwen.com/subject/itnamhtx.html