我想在Windows 7上使用Theano。我能夠安裝Theano並導入Theano,但在看到沒有安裝C編譯器的警告後,我還安裝了mingw。現在,當我嘗試「導入theano」時,出現編譯錯誤。該消息是相當長的,但相關的部分(從我可以告訴)是這樣的: Problem occurred during compilation with the command line below:
g++ -sha
from theano.tensor import stacklists, scalars, matrices
from theano import function
a, b, c, d = scalars('abcd')
X = stacklists([[a, b], [c, d]])
f = function([a, b, c, d], X)
f(1, 2, 3, 4)