简体   繁体   中英

Created a Desktop Application with PyInstaller but It doesn't work on Windows

I developed a Desktop Application in Python on my Mac using PyCharm. Then I used pyinstaller to pack it and try to use it on Windows 10 and Windows 7 but when I try to run on windows 10 i have the error : This app can't run on your PC check with software publisher.

I tried to set every possible setting on windows 10, from SmartScreen to security policy to allow external developer. Nothing. So I thought could be something about pyinstaller.

Ideas?

PyInstaller is not cross platform.

See the documentation here. , specifically the Note near the top of the page.

If you want to run on Windows, you must compile on Windows. Same for Mac OS and Linux.

Solutions to your particular problem:

  • Simply use a different machine to compile, with the relevant OS, if available.
  • A virtual machine on your Mac ( VirtualBox for example ) with Windows installed inside it.

As far as I know, there is no other way around this. No tricks or clever hacks... Sorry!

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