theano g++ not detected

rggir picture rggir · Apr 19, 2016 · Viewed 27.1k times · Source

I installed theano but when I try to use it I got this error:

WARNING (theano.configdefaults): g++ not detected! Theano will be unable to execute optimized C-implementations (for both CPU and GPU) and will default to Python implementations. Performance will be severely degraded.

I installed g++, and put the correct path in the environment variables, so it is like theano does not detect it.

Does anyone know how to solve the problem or which may be the cause?

Answer

Emiel picture Emiel · Sep 19, 2016

I had this occur on OS X after I updated XCode (through the App Store). Everything worked before the update, but after the update I had to start XCode and accept the license agreement. Then everything worked again.