All noteworthy Linux and Mac OS distributions ship with some version of Python. Windows does not have Python installed by default, so you must install it separately to run the Python module. Of course, the installed version of Python should match your program (version 2 or 3).
The easiest way to distribute your program is to simply distribute the source code (for example, send your module by e-mail or download it somewhere), but in this case, Python must be installed on the target PC and it must correspond to the dependencies. An even better solution (at least for the community) is to download your program as a package in PyPi . More information for this procedure can be found HERE .
In some cases, there are reasons that prevent you from using these options. For example, you cannot install python and / or dependencies (without root / admin account). If so, you can link your modules with everything else that is required to run your program (for example, python * .dll on Windows). As far as I know, the main options for this type of distribution are as follows:
- PyInstaller
- portfolio
- Fbs
- Pyoxidizer
- nuita --standalone
- py2app (Mac OS only)
- cx_Freeze
- freeze
py2exe
Cython --embed
Another approach is to use Portable Python or in the case of Linux / BSD StaticPython
Note: not all of the above tools work on all platforms and / or support Python3. Check their documentation.
Not supported
- bbFreeze
- eski (not supported)
- Vendorid
- gui2exe
pmav99 Mar 20 2018-11-21T00: 00Z
source share