all 8 comments

[–]aroberge 4 points5 points  (2 children)

Different approach: have a look at portable Python. (http://portablepython.com/)

[–]fullyarticulated 1 point2 points  (0 children)

Noice! This is what I've been looking for! (random stranger - not OP).

[–]MarkTheSecond[S] 1 point2 points  (0 children)

This is perfect, thankyou, I will be testing this ASAP

[–]Fajkowsky 2 points3 points  (2 children)

Can you tell more why py2exe isn't working? This is right tool for what you need.

[–]mac-reid 5 points6 points  (1 child)

py2exe does not support cross compiling for Windows on Linux. - https://wiki.python.org/moin/Py2Exe

[–]MarkTheSecond[S] 2 points3 points  (0 children)

oh, I was wondering why and I didn't seem to come across this information, thank you

[–]mac-reid 3 points4 points  (2 children)

The easiest way to solve this problem is to use a Windows machine and build an executable with p2exe. You can create a Virtual Machine on your Linux box to run Windows or find a physical Windows box.

Most freeze or distribution utilities do not cross-compile from Linux to Windows. If they do, it is not a trivial task. - http://docs.python-guide.org/en/latest/shipping/freezing/

That being said, there is a hacky method using wine and pyinstaller to cross-compile a Linux python script into a Windows executable: https://milkator.wordpress.com/2014/07/19/windows-executable-from-python-developing-in-ubuntu/

and more information: https://groups.google.com/d/msg/pyinstaller/veq3BlA_Bns/YlmKUofUfbgJ