6

I'm trying to generate an executable from Linux for Windows using pyinstaller.

pyinstaller --onefile --windowed montecarlo.py

I run this command and get a single executable that works on Linux just fine, but if I try on Windows, it's just a simple file. Why?

2
  • Please clarify. What is the extension of the generated file? Commented May 17, 2017 at 2:19
  • On Linux it's a executable (application/x-executable), but on Windows it's a Type of file: File Commented May 17, 2017 at 2:29

1 Answer 1

6

I was trying to do this same thing today and ran across this answer. It pointed to the FAQ, which says cross-compiling is not supported. It recommends using Wine.

Sign up to request clarification or add additional context in comments.

1 Comment

Did you ever get this off the ground? I'd like to be able to build windows releases in pipelines (which run linux docker containers).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.