Distributing Python programs

后端 未结 6 1660
独厮守ぢ
独厮守ぢ 2020-12-05 20:03

How do I let my friends use my Python programs? They don\'t have python installed, but they can use command line programs. I don\'t have the skill to write GUI.

Let,

相关标签:
6条回答
  • 2020-12-05 20:46

    In 2019 I have been using PyInstaller mostly, works very well for all of my Python scripts I wish to convert to a single runnable exe.

    0 讨论(0)
  • 2020-12-05 20:47

    another alternative you can try is Portable python.

    0 讨论(0)
  • 2020-12-05 20:50

    You could use something like py2exe to convert your Python program into an executable.

    0 讨论(0)
  • 2020-12-05 21:03

    A less general, but lightweight and simple way of putting many Python files into 1 or 2 files (Python programs) is Fredrik Lundh's squeeze program. When you "squeeze" a bunch of Python programs and modules, you can often produce a single Python program. People still need Python to run it (but it's included in most Unix distributions, including Mac OS X), but you can easily distribute it, as your program and modules are all bunched up in a single file.

    0 讨论(0)
  • 2020-12-05 21:07

    http://hackerboss.com/how-to-distribute-commercial-python-applications/ mentions using preinstalled, bundled, and frozen interpreters, but i suggest for speed and security, to compile using Shed Skin, Iron Python, Cython, or PyPy. The psyco module also helps with speed if your code is old.

    0 讨论(0)
  • 2020-12-05 21:09

    You have the options presented thus far: Portable Python and Py2Exe. Either can be pretty good.

    My suggestion: encourage your friends to install Python! As you know, it's free, and simple to install and download. If they want your application bad enough, installing Python will be a no-brainer.

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