使用到工具pyinstaller

pip install pyinstaller

使用指令打包,其中xxx.ico为需要的图标,xxx.py为要打包的py文件

pyinstaller -w --icon xxx.ico --onefile xxx.py

然后在dust文件夹下就能看到打包好的exe文件

相关文章:

  • 2021-07-07
  • 2021-09-05
  • 2022-12-23
  • 2021-10-23
  • 2022-12-23
  • 2021-05-31
  • 2021-04-02
  • 2021-06-27
猜你喜欢
  • 2021-11-11
  • 2022-12-23
  • 2022-01-12
  • 2021-04-15
  • 2021-07-17
  • 2021-05-30
  • 2021-05-29
相关资源
相似解决方案