How to choose python 3.5.1 executable for an Xcode 7 project?

I want to set up a python 3 project in Xcode, but I cannot complete the step when I am asked to select an executable for the circuit. See Step 16 in response to Python in Xcode 4+? .

I use "which python3" to search for the executable:

$ which python3
/usr/local/bin/python3

but Xcode does not allow me to select python3 from "/ usr / local / bin" by clicking on it:

enter image description here

, :   ls -l/usr/local/bin/python3 "../Cellar/python3/3.5.1/bin/python3", , , , "../Frameworks/Python.framework/Versions/3.5/bin/python3", , , "Python3.5" . Xcode :

enter image description here

Xcode 7.3.1 OS X 10.11.4. python 3.5.1 home- brew.

+4
4

python3.5 . , python3.5 . ( , python3.6 - python).

python

quicklook

Python ""

+4

.   , (, , ): python3, " ", , , , "" "".    . - - python3 , Homebrew /usr/local/bin/python 3, brew , Xcode -, , . ( , .) , , Homebrew ""; , "" , ls -al /usr/local/bin/python3 , python3 Homebrew, /usr/local/Cellar/python3/3.5.2_3/bin/(python3).

+1

Just right click and quick view function. The file becomes selectable, and then you can specify it as an executable in your Xcode project.

0
source

If you are using Anaconda, you can install the package python.app:

conda install python.app

Then in Xcode select </path/to/anaconda-environment>/python.app/Contents/MacOS/python.

(Note: Do not select python.appin the bin( </path/to/anaconda-environment>/bin/python.app) directory , which will result in some error regarding the Mach-O header.)

0
source

All Articles