switch xcode version

Today I updated xcode version from 7.x to 8.x. After upgrade xcode, keras cause following error.
;-(

iwatobipen$ python
Python 3.5.2 |Anaconda 2.4.0 (x86_64)| (default, Jul  2 2016, 17:52:12) 
[GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import keras
......
th=79 :
5368 
===============================
nvcc fatal   : The version ('80000') of the host compiler ('Apple clang') is not supported

.....

Opps ! It is because Cuda version 8 is not supported xcode 8.x.
So, to fix the error, I switched xcode version.

iwatobipen$ sudo xcode-select --switch /Applications/Xcode72.app/Contents/Developer/
iwatobipen$ sudo xcode-select --switch /Applications/Xcode72.app

Retry!

iwatobipen$ ipython
Python 3.5.2 |Anaconda 2.4.0 (x86_64)| (default, Jul  2 2016, 17:52:12) 
Type "copyright", "credits" or "license" for more information.

IPython 4.2.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import keras
Using Theano backend.

In [2]: 

Worked fine !

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s