Iulian Onofrei Iulian Onofrei - 1 month ago 15
Python Question

Compile python virtual environment

I created a Python script for a Freelance job and I can't find how to compile/build/package it for easy sharing. The person for which I created it is not a technical one, so I can't explain him how to activate a virtualenv, install requirements and so on.

What is the easiest way for him to run the project right after downloading it?

Can the whole virtualenv be compiled into an

.exe
? If yes, can this be done inside a macOS system?

Answer

I ended up using PyInstaller as this worked out of the box for me.