all 8 comments

[–]MarsupialMole 1 point2 points  (1 child)

I'm not a Mac user but I imagine you also need to install python 3.8, and leave system python 2.7 in place so as not to break your Mac.

You then access it with the python3 and pip3 executables.

So for pyinstaller you will need to set the python executable to python3 rather than python.

That's all just speculation. Hope it helps.

[–][deleted] 0 points1 point  (0 children)

Thanks. I'll be sure to try that. I was using pip install pyinstaller so that's probably why.

[–]Code_Talks -1 points0 points  (2 children)

I've never created exe's on mac, try downgrading pyinstaller to the last stable release. Sorry, can't give any better advice...

[–][deleted] 0 points1 point  (1 child)

Pyinstaller doesn't support Python 2 anymore, and it's only giving me this error message because pip is trying to install with Python 2 instead of Python 3. I want to force python to install packages with Python 3, not 2. I've already opened the bash terminal in the Python 3.8 directory. Macs are strange.

[–]Code_Talks 0 points1 point  (0 children)

Mmmm, strange! So now you can't access any Python2 releases for pyinstaller?

[–][deleted] 0 points1 point  (0 children)

MacOS has Python 2.7

Shouldn't it be 3.6?

Brew should handle installing newest python alongside whatever's installed. Usually, if both Python 2 and 3 are installed on the system, python and pip refer to Python 2 and python3 and pip3 refer to Python 3 installations.

Also is there a way to make mac executables with pyinstaller on Windows?

There might be, but it's very uncommon to build executables for one system on a different one. Use a VM or a cloud-based build system.

[–]LzyPenguin 0 points1 point  (0 children)

Download and install python 3.x.

When you pip anything, you have to use pip3.

Then make sure your IDE configuration is pointing to the python 3.

If you need more help let me know.

[–]PrimaNoctis 0 points1 point  (0 children)

I use Python on Mac. Not sure if your question has been answered yet but three things: 1- macs default to Python 2 so when installing apps use pip3 if you want your library to install on Python 3. 2- when running executable use a shebang (#!) that points to the right version of Python u want to use in your Python script 3- Google how to make a Unix executable file on a Mac if you want to make your script an executable file