How to convert .py to .exe in Mac [duplicate]
Asked Answered
W

1

8

I've developed an application in Python with PyQt on Mac OS and I want to make .exe file for windows OS. How can I do this?

I've tried in Ubuntu but it doesn't work. I'll be grateful for some useful assistance.

Woolley answered 20/3, 2019 at 7:21 Comment(0)
A
2

Alright… So in Mac, there is a simple way to convert .py to .exe. In terminal first open the file directory with the “cd” command i.e. cd Desktop/MyFile Then run this code: pyinstaller —onefile name.py Instead of “name.py” put your own file. After that, in the same folder there will be created a “dist” file, you can find the ready .exe there…)

Articulation answered 21/7, 2021 at 14:53 Comment(2)
it's build a unix file, not exe fileReconstruction
Apparently PyInstaller makes an executable for the OS you run it in.Suu

© 2022 - 2024 — McMap. All rights reserved.