-2

I've been coding on python for a while. Made quite a few games and applications. Now I want to share them but don't know how. I can't just ask my friends to download python on their computers.

Please Help!

  • https://stackoverflow.com/questions/41570359/how-can-i-convert-a-py-to-exe-for-python – exe Nov 28 '18 at 06:58

1 Answers1

1

PyInstaller is what you need.

PyInstaller is a program that freezes (packages) Python programs into stand-alone executables, under Windows, Linux, Mac OS X, FreeBSD, Solaris and AIX. Its main advantages over similar tools are that PyInstaller works with Python 2.7 and 3.4—3.7, it builds smaller executables thanks to transparent compression, it is fully multi-platform, and use the OS support to load the dynamic libraries, thus ensuring full compatibility.

EDIT: Added quickstart guide: Copied from the quickstart of PyInstaller:

Install PyInstaller from PyPI:

pip install pyinstaller

Go to your program’s directory and run:

pyinstaller yourprogram.py

This will generate the bundle in a subdirectory called dist.

For a more detailed walkthrough, see the manual.

enamoria
  • 896
  • 2
  • 11
  • 29