2016-11-11 20 views
5

我想運行theano庫代碼我的設置是馬科斯塞拉利昂x64和python與anaconda pacakges。WARNING(theano.configdefaults):g ++ not detected! Theano將無法執行優化的C實現

我安裝theano:PIP安裝theano併成功安裝,但是當我試圖運行代碼,它給這個錯誤:

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. 

然後我搜索互聯網上,發現我必須安裝conda install mingw libpython一起工作theano所以我嘗試過但後來我發現這兩個模塊mingw and libpython只爲贏得平臺。

我現在該做什麼?

+0

看看在Mac上安裝g ++的說明[這裏](http://stackoverflow.com/questions/2122425/how-do-i-install-g-on-macos-x)。 – sygi

回答

0

由於您使用的是anaconda發行版,因此使用conda程序包管理器安裝theano會比較容易。

注意:macos帶有一個開箱即用的Python解釋器(2.7,我認爲)。你確定pipanaconda python中安裝了theano嗎?