一、安装pyinstaller
pip install pyinstaller
Python脚本转换为exe程序
二、打包程序(pyinstaller.exe在python下的“Scripts”文件夹下)
python pyinstaller.exe -F -w D:\Publish.py
-F代表将程序所依赖的库合成为一个整体,只生成一个exe文件
-w代表不出现控制台窗口
Python脚本转换为exe程序

相关文章:

  • 2022-12-23
  • 2021-11-25
  • 2022-02-09
  • 2021-06-16
  • 2021-06-13
  • 2021-09-14
  • 2022-12-23
猜你喜欢
  • 2021-12-27
  • 2021-07-30
  • 2022-01-28
  • 2021-12-10
  • 2022-02-25
  • 2021-04-19
相关资源
相似解决方案