

There are web proxies, blocked ports, ssh problems and network issues. It’s using Python 3.7.4 compiled from source. The build executes from an Ubuntu 16.04 virtual machine, but it’s not a clean install. There’s no need to worry about Windows yet, though all of the packaging systems I try do support building for Windows, Mac and Linux - it’s good to keep possibilities open.

The final packaged file will run on Docker, which means the images are almost guaranteed to be some Linux derivative. It’s important to understand these because it helps focus problem resolution as you work through it. The EnvironmentĪll projects have constraints, and this is definitely not an exception. The info here may help you push past problems in your own attempts. Note: Please don’t read this as “project x is best” or “solution y sucks”, instead try to learn from the journey. Instead of blindly repeating what I tried last time, I decided to investigate more alternatives and discuss them here. I want to run Python code inside a Docker container, but the container image cannot require a Python installation. Using PyInstaller I built a single binary file that could execute across platforms and looked just like any other application.įast forward until today and I have a similar need, but a different use case.

Back then, the goal was to make a desktop interface that included other files and binaries in one bundle. A few years back I researched how to create a single-file executable of a Python application.
