0

I am trying to create a python standalone application to run on Mac computer without installing python.

I tried - pyinstaller, cxfreeze and py2app without any luck.

I work on a windows computer and I know that for both pyinstaller and cxfreeze I need to use a Mac computer in order to create a file for mac. A student working with me who has a Mac tried those but had no luck.

I can create an exe. file that works perfect on windows so I know that is not something wrong with the code itself.

I need to have a Mac version as well because my target group in my research is mainly using Mac.

7
  • As for Pyinstaller, did you follow this? stackoverflow.com/questions/25469869/… Commented Sep 4, 2020 at 21:36
  • How about putting it in a docker image that can run on Windows, Linux and macOS? Commented Sep 4, 2020 at 21:39
  • @MarkSetchell don't you need a Docker executable for that? Kind of like you need the Java virtual machine for Java Commented Sep 4, 2020 at 21:42
  • @Pat-Laugh Not sure what you mean by "a docker executable". You would need to install docker, yes, but OP doesn't express any objection to that, only to installing Python. If you want something consistently runnable across many platforms, docker is a good solution. Commented Sep 4, 2020 at 21:47
  • Alternatively, how about putting it in a "free tier" Amazon EC2 node that they can log into and use without installing any nasty Windows stuff on their lovely Macs? Or giving them a Windows virtual machine file with your Python code in, that they can run under VirtualBox - then, if they get unhappy with all that Windows stuff they can delete the whole lot just by removing a single file. Commented Sep 4, 2020 at 22:06

1 Answer 1

0

from here:

Mac OS X 10.8 comes with Python 2.7 pre-installed by Apple. If you wish, you are invited to install the most recent version of Python from the Python website (https://www.python.org). A current “universal binary” build of Python, which runs natively on the Mac’s new Intel and legacy PPC CPU’s, is available there.

edit: Also see here for the PyInstaller

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

2 Comments

Not sure how it helps to suggest installing Python when OP's question explicitly states that is to be avoided?
Because you don't need to install anything on Mac OS - it comes pre-installed by Apple - the downside is that OP needs to keep the Python version of the code at 2.7.

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.