Python is not running on Xcode

Hello, I’m using Xcode 16 and trying to run a python in it. But it is not working and console output is not showing that and the build failed error is showing up. Please help me to resolve this issue.

Have you installed a Python interpreter, and saved that file as a .py file?

To check if you have an interpreter l, do python --version, and if that doesn’t work, py --version. If neither print something other than an error, try getting Python installed.

Hey, I have been following this guide, but I’m not sure where I’m getting wrong, could you please help me with this?

Do you get any errors whatsoever?
Can you show what python --version prints?

Hey, thank you for your reply, I was able to resolve it by revisiting all the steps, and yes now python --version is printing “Python 3.14.0,” previously it was not showing anything.

1 Like