简体   繁体   中英

How to generate a Windows executable using pyinstaller on Linux?

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM