theano g++ not detected

前端 未结 5 1331
慢半拍i
慢半拍i 2021-01-04 00:31

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

5条回答
  •  时光说笑
    2021-01-04 00:46

    This is the error that I experienced in my mac running jupyter notebook with a python 3.5 kernal hope this helps someone, i am sure rggir is well sorted at this stage :)

    Error Using Theano backend. 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. To remove this warning, set Theano flags cxx to an empty string.

    Cause update of XCode (g++ compiler) without accepting terms and conditions, this was pointed out above thanks Emiel

    Resolution:

    1. type g++ --version in the mac terminal
    2. "Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo." is output as an error
    3. launch Xcode and accept terms and conditions
    4. return g++ --version in the terminal
    5. Something similar to the following will be returned to show that Xcode has been fully installed and g++ is now available to keras
      1. Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
      2. Apple LLVM version 8.0.0 (clang-800.0.42.1)
      3. Target: x86_64-apple-darwin15.6.0
      4. Thread model: posix
      5. InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
    6. Restart you machine… I am sure there are some more complicated steps that someone smarter than me can add here to make this faster
    7. Run the model.fit function of the keras application which should run faster now … win!

提交回复
热议问题