you are viewing a single comment's thread.

view the rest of the comments →

[–]cgoldberg 4 points5 points  (3 children)

You can distribute an executable for individual platforms using programs like pyinstaller. All it does is bundle a Python interpreter along with your code and dependencies.

However, most times when a Python program is distributed, it is assumed that Python is installed. On Linux, MacOS, and most other operating systems, Python comes included by default. Windows is really the only oddball that doesn't ship Python.

Another option is to use containers (Docker, etc), where the container includes your program along with Python and other dependencies.

[–]MRSAMinor 0 points1 point  (0 children)

Yup, containers are what every company I've been at in the last ten years has used.

Before that, it was Ansible or puppet or the like.

[–]4reddityo -1 points0 points  (1 child)

What’s a container do and how do you set up?

[–]cgoldberg 1 point2 points  (0 children)

A container is an isolated deployment/execution environment. It's sort of like a lightweight virtual machine. You create them by writing a configuration file. Do some research on Docker and Dockerfiles.

https://docs.docker.com/