@Wayne-Z
2016-07-27T22:53:06.000000Z
字数 3967
阅读 2245
deep-learning
Problem occurred during compilation with the command line below:
C:\Program Files\mingw-w64\x86_64-6.1.0-posix-seh-rt_v5-rev0\mingw64\bin\g++.exe -shared -g -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -m64 -DMS_WIN64 -IC:\Anaconda3\lib\site-packages\numpy\core\include -IC:\Anaconda3\include -IC:\Anaconda3\lib\site-packages\theano\gof -o C:\Users\wenwei\AppData\Local\Theano\compiledir_Windows-10-10.0.10586-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.5.2-64\lazylinker_ext\lazylinker_ext.pyd C:\Users\wenwei\AppData\Local\Theano\compiledir_Windows-10-10.0.10586-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.5.2-64\lazylinker_ext\mod.cpp -LC:\Anaconda3\libs -LC:\Anaconda3 -lpython35
In file included from C:/Program Files/mingw-w64/x86_64-6.1.0-posix-seh-rt_v5-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/6.1.0/include/c++/math.h:36:0,
from C:\Anaconda3\include/pyport.h:328,
from C:\Anaconda3\include/Python.h:50,
from C:\Users\wenwei\AppData\Local\Theano\compiledir_Windows-10-10.0.10586-SP0-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.5.2-64\lazylinker_ext\mod.cpp:1:
C:/Program Files/mingw-w64/x86_64-6.1.0-posix-seh-rt_v5-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/6.1.0/include/c++/cmath:1133:11: error: '::hypot' has not been declared
using ::hypot;
^~~~~
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
C:\Anaconda3\lib\site-packages\theano\gof\lazylinker_c.py in <module>()
73 if version != getattr(lazylinker_ext, '_version', None):
---> 74 raise ImportError()
75 except ImportError:
ImportError:
During handling of the above exception, another exception occurred:
ImportError Traceback (most recent call last)
C:\Anaconda3\lib\site-packages\theano\gof\lazylinker_c.py in <module>()
90 if version != getattr(lazylinker_ext, '_version', None):
---> 91 raise ImportError()
92 except ImportError:
ImportError:
During handling of the above exception, another exception occurred:
Exception Traceback (most recent call last)
<ipython-input-1-3397704bd624> in <module>()
----> 1 import theano
C:\Anaconda3\lib\site-packages\theano\__init__.py in <module>()
61 object2, utils)
62
---> 63 from theano.compile import (
64 SymbolicInput, In,
65 SymbolicOutput, Out,
C:\Anaconda3\lib\site-packages\theano\compile\__init__.py in <module>()
7 SpecifyShape, specify_shape, register_specify_shape_c_code)
8
----> 9 from theano.compile.function_module import *
10
11 from theano.compile.mode import *
C:\Anaconda3\lib\site-packages\theano\compile\function_module.py in <module>()
20 from theano.compat import izip
21 from theano.gof import graph
---> 22 import theano.compile.mode
23 from theano.compile.io import (
24 In, SymbolicInput, SymbolicInputKit, SymbolicOutput)
C:\Anaconda3\lib\site-packages\theano\compile\mode.py in <module>()
10 import theano
11 from theano import gof
---> 12 import theano.gof.vm
13 from theano.configparser import config
14 from theano.compile.ops import _output_guard
C:\Anaconda3\lib\site-packages\theano\gof\vm.py in <module>()
636
637 try:
--> 638 from . import lazylinker_c
639
640 class CVM(lazylinker_c.CLazyLinker, VM):
C:\Anaconda3\lib\site-packages\theano\gof\lazylinker_c.py in <module>()
124 args = cmodule.GCC_compiler.compile_args()
125 cmodule.GCC_compiler.compile_str(dirname, code, location=loc,
--> 126 preargs=args)
127 # Save version into the __init__.py file.
128 init_py = os.path.join(loc, '__init__.py')
C:\Anaconda3\lib\site-packages\theano\gof\cmodule.py in compile_str(module_name, src_code, location, include_dirs, lib_dirs, libs, preargs, py_module, hide_symbols)
2202 # difficult to read.
2203 raise Exception('Compilation failed (return status=%s): %s' %
-> 2204 (status, compile_stderr.replace('\n', '. ')))
2205 elif config.cmodule.compilation_warning and compile_stderr:
2206 # Print errors just below the command line.
Exception: Compilation failed (return status=1): In file included from C:/Program Files/mingw-w64/x86_64-6.1.0-posix-seh. from C:\Users\wenwei\AppData\Local\Theano\compiledir_Windows-10-10.0.10586-SP0-Intel64_Family_6_Model. C:/Program Files/mingw-w64/x86_64-6.1.0-posix-seh-rt_v5-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/6.1.0/include/c++/cmat. ^~~~~;::hypot' has not been declared