Python Forum
building app in XCODE with python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
building app in XCODE with python
#1
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.
Reply
#2
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
phantom115 likes this post
Reply
#3
(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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Building a DoublyLinkedList in Python - - append method Drone4four 2 535 Jan-08-2024, 01:27 PM
Last Post: Drone4four
  Docker -building a python image saisankalpj 5 4,355 Jul-13-2022, 12:53 PM
Last Post: saisankalpj
  Building python (3.9.5) with different libexpat version (2.4.6) raghupcr 0 1,420 Feb-25-2022, 11:29 AM
Last Post: raghupcr
  Solaris 10 building Python 3.8.3 problems. munocat 0 1,594 May-26-2020, 01:05 AM
Last Post: munocat
  Building first python program. Need a little guidance. Chrislw324 6 3,297 Oct-25-2018, 07:15 AM
Last Post: buran
  problems building python on win32 xp miltmobley 4 3,886 Oct-11-2017, 03:27 PM
Last Post: gruntfutuk

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020