Skip to content Skip to sidebar Skip to footer

Pure Python In Xcode

Is there a way to program using pure python in Xcode? I want something like the c++ command line utility except for python, I found a tutorial that did not work for me: (after play

Solution 1:

/Library/Frameworks/Python.framework/Versions/2.6/bin/python is typically the path to the python.org installer Python (or possibly other non-Apple Python) which, indeed, includes only 32-bit architectures (ppc and i386). It also is built using the OS X 10.4u SDK (an optional install with Xcode on 10.6). The Apple-supplied Python 2.6 in 10.6 is built using a 10.6 SDK and includes 32-bit and 64-bit archs (i386, x86_64, and ppc for compatibility).

$ /usr/local/bin/python2.6 -c 'import sys;print(sys.executable)'# python.org Python
/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python
$ /usr/bin/python2.6 -c 'import sys;print(sys.executable)'# Apple-supplied Python
/usr/bin/python2.6

Decide which Python you want to use and change your Xcode project accordingly.

Post a Comment for "Pure Python In Xcode"