Python Forum

Full Version: building app in XCODE with python
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Good day all,

I am trying to code in Xcode to get arm64 support for my app, I need to select the python Unix Executable File as is found in /usr/bin/python3

I attempted to follow some guides they directed me to the below for a target.
####### bin % which python3
/Library/Frameworks/Python.framework/Versions/3.11/bin/python3
####### bin %

But this fails because the above path after installing python3 from python.org or brew results in the below:

/Library/Frameworks/Python.framework/Versions/3.11/bin/python3 -> is a Alias - 10 bytes And references path under get info on the file

original: /Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11

And that file is a Document - 153 KB under get info

When I launch IDLE and go to file --> Path browser I can see /Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11 becomes a folder in that app.

I need the python file as a Unix Executable File just like the default python that comes with Mac OS under /usr/bin/ named python3

I tried to find some guides to do that, but I having some trouble, hopfuly the rewording of this post clarifies my problem better.

Thank you for any help.
Change Path in .bashrc, bash_profile or .zshrc file,eg in this link
Can also look this The right and wrong way to set Python 3 as default on a Mac
(Jul-28-2023, 05:29 PM)snippsat Wrote: [ -> ]Change Path in .bashrc, bash_profile or .zshrc file,eg in this link
Can also look this The right and wrong way to set Python 3 as default on a Mac

Thank you, That information did the trick. I was able to have a python unix executable.