Salvatore Froncillo
Salvatore Froncillo

Reputation: 3

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?

Upvotes: 0

Views: 1141

Answers (1)

wstk
wstk

Reputation: 1270

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!

Upvotes: 1

Related Questions