Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

theano g++ not detected

Tags:

python

g++

theano

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?

like image 569
rggir Avatar asked Apr 19 '16 15:04

rggir


2 Answers

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.

like image 193
Emiel Avatar answered Sep 22 '22 13:09

Emiel


On Windows, you need to install mingw to support g++. Usually, it is advisable to use Anaconda distribution to install Python. Theano works with Python3.4 or older versions. You can use conda install command to install mingw.

like image 30
tauseef_CuriousGuy Avatar answered Sep 21 '22 13:09

tauseef_CuriousGuy