I have a Python script that I developed in virtualenv on Windows (Python 2.7).
Now I would like to compile it into a single EXE using Py2exe.
I read and read documents and stackoverflow, and yet I cannot find a simple answer: how to do this? I tried just installing py2exe (via a downloadable installer), but of course this does not work, because it uses python at the system level, which has no dependencies for my script. It should use virtualenv - but there seems to be no such option.
I managed to get bbfreeze to work, but it displays a dist folder filled with files, and I just need a simple EXE file (one file) for my simple script, and I understand that Py2Exe can do this.
tl; dr: How to run Py2Exe in virtualenv context so that it correctly imports dependencies?
source share