How to bundle a Python application including dependencies?

前端 未结 7 2042
心在旅途
心在旅途 2020-11-28 03:09

I need to package my Python application, its dependencies and Python into a single MSI installer. The end result should desirably be:

  • Python is installed in th
相关标签:
7条回答
  • 2020-11-28 03:59

    I use PyInstaller (the svn version) to create a stand-alone version of my program that includes Python and all the dependencies. It takes a little fiddling to get it to work right and include everything (as does py2exe and other similar programs, see this question), but then it works very well.

    You then need to create an installer. NSIS Works great for that and is free, but it creates .exe files not .msi. If .msi is not necessary, I highly recommend it. Otherwise check out the answers to this question for other options.

    0 讨论(0)
提交回复
热议问题