XCode and Python

Ned Deily nad at acm.org
Fri Jun 12 14:36:06 EDT 2015


In article <90a23bdc-7703-4397-b83a-92718ae10c48 at googlegroups.com>,
 Sebastian M Cheung via Python-list <python-list at python.org> wrote:
> On Thursday, June 11, 2015 at 11:07:59 PM UTC+1, Sebastian M Cheung wrote:
> > For some reason I cannot build now in XCode:
> > 
> > $ xcodebuild -find python
> > /Users/sebc/anaconda/bin/python
> > 
> > $python
> > Python 2.7.10 |Anaconda 2.2.0 (x86_64)| (default, May 28 2015, 17:04:42) 
> > [GCC 4.2.1 (Apple Inc. build 5577)] on darwin
> > Type "help", "copyright", "credits" or "license" for more information.
> > Anaconda is brought to you by Continuum Analytics.
> > Please check out: http://continuum.io/thanks and https://binstar.org
> > 
> > But XCode now simply say error
> > 
> > env: python: No such file or directory
> > Command 
> > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolcha
> > in/usr/bin/clang failed with exit code 127
> > 
> > I couldn't find anything relating XCode for iPhone related to Python build? 
> > I am using
> > anaconda Python
> > Anyone?
> Or I need to configure something in Xcode?

Wild guess: did you by any chance delete the Apple-supplied system 
python?  What is the result of:
$ /usr/bin/python -c 'import sys;print(sys.version)'

-- 
 Ned Deily,
 nad at acm.org




More information about the Python-list mailing list