2017-05-19 15 views
0

私はこのコードをIPython上で実行しています。私はこの問題に直面しています。私はこの問題を解決するための提案や助けに感謝します。g ++。exe:エラー:そのようなファイルやディレクトリはありません

私はバックエンドのG ++コンパイラの

import numpy 
from keras.datasets import imdb 
from matplotlib import pyplot 
from pylab import * 

# load the dataset 

(X_train, y_train), (X_test, y_test) = imdb.load_data() 
X = numpy.concatenate((X_train, X_test), axis=0) 
y = numpy.concatenate((y_train, y_test), axis=0) 

g++.exe: error: Amjad\AppData\Local\Theano\compiledir_Windows-10-10.0.15063-SP0-Intel64_Family_6_Model_58_Stepping_9_GenuineIntel-3.5.3-64\lazylinker_ext\lazylinker_ext.pyd: No such file or directory g++.exe: error: Amjad\AppData\Local\Theano\compiledir_Windows-10-10.0.15063-SP0-Intel64_Family_6_Model_58_Stepping_9_GenuineIntel-3.5.3-64\lazylinker_ext\mod.cpp: No such file or directory

答えて

0

としてtheanoを使用しています、私はhere(gitのバージョンなし)からのMinGWをインストールする必要がありました。

次に、 "bin"ディレクトリをPATH環境変数varに追加します。通常はC:\MinGW\binフォルダー、またはそれをインストールしたフォルダーです。

hypotに関するエラーが、あなたは通常C:\Users\yourUserで、.theanorcという名前のファイルにこれを追加表示された場合は、その後

(ケースであなたはそれが環境VARへのパスです追加し、G ++コンパイラがすでにインストールされています)。 (Windowsエクスプローラで作成できない場合は、メモ帳で保存してください)。

[gcc] 
cxxflags = -D_hypot=hypot 

Always avoid installing anything in folders with spaces in their names! Theano won't recognize those folders and will bring errors. If you have problems with that, you can see these:

関連する問題