XCode and Python

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

XCode and Python

Sebastian M Cheung
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.xctoolchain/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?

Reply | Threaded
Open this post in threaded view
|

XCode and Python

Sebastian M Cheung
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.xctoolchain/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?

Reply | Threaded
Open this post in threaded view
|

XCode and Python

C.D. Reimer
On 6/11/2015 3:09 PM, Sebastian M Cheung via Python-list wrote:
> Or I need to configure something in Xcode?

Perhaps this link might help determine if the problem is with Xcode
and/or Python.

http://stackoverflow.com/questions/5276967/python-in-xcode-6

Chris R.

Reply | Threaded
Open this post in threaded view
|

XCode and Python

Ned Deily
In reply to this post by Sebastian M Cheung
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