[关闭]
@Wayne-Z 2016-07-27T22:53:06.000000Z 字数 3967 阅读 2245

Win10系统下搭建深度学习环境(一)

deep-learning


  1. Problem occurred during compilation with the command line below:
  2. 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
  3. 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,
  4. from C:\Anaconda3\include/pyport.h:328,
  5. from C:\Anaconda3\include/Python.h:50,
  6. 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:
  7. 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
  8. using ::hypot;
  9. ^~~~~
  10. ---------------------------------------------------------------------------
  11. ImportError Traceback (most recent call last)
  12. C:\Anaconda3\lib\site-packages\theano\gof\lazylinker_c.py in <module>()
  13. 73 if version != getattr(lazylinker_ext, '_version', None):
  14. ---> 74 raise ImportError()
  15. 75 except ImportError:
  16. ImportError:
  17. During handling of the above exception, another exception occurred:
  18. ImportError Traceback (most recent call last)
  19. C:\Anaconda3\lib\site-packages\theano\gof\lazylinker_c.py in <module>()
  20. 90 if version != getattr(lazylinker_ext, '_version', None):
  21. ---> 91 raise ImportError()
  22. 92 except ImportError:
  23. ImportError:
  24. During handling of the above exception, another exception occurred:
  25. Exception Traceback (most recent call last)
  26. <ipython-input-1-3397704bd624> in <module>()
  27. ----> 1 import theano
  28. C:\Anaconda3\lib\site-packages\theano\__init__.py in <module>()
  29. 61 object2, utils)
  30. 62
  31. ---> 63 from theano.compile import (
  32. 64 SymbolicInput, In,
  33. 65 SymbolicOutput, Out,
  34. C:\Anaconda3\lib\site-packages\theano\compile\__init__.py in <module>()
  35. 7 SpecifyShape, specify_shape, register_specify_shape_c_code)
  36. 8
  37. ----> 9 from theano.compile.function_module import *
  38. 10
  39. 11 from theano.compile.mode import *
  40. C:\Anaconda3\lib\site-packages\theano\compile\function_module.py in <module>()
  41. 20 from theano.compat import izip
  42. 21 from theano.gof import graph
  43. ---> 22 import theano.compile.mode
  44. 23 from theano.compile.io import (
  45. 24 In, SymbolicInput, SymbolicInputKit, SymbolicOutput)
  46. C:\Anaconda3\lib\site-packages\theano\compile\mode.py in <module>()
  47. 10 import theano
  48. 11 from theano import gof
  49. ---> 12 import theano.gof.vm
  50. 13 from theano.configparser import config
  51. 14 from theano.compile.ops import _output_guard
  52. C:\Anaconda3\lib\site-packages\theano\gof\vm.py in <module>()
  53. 636
  54. 637 try:
  55. --> 638 from . import lazylinker_c
  56. 639
  57. 640 class CVM(lazylinker_c.CLazyLinker, VM):
  58. C:\Anaconda3\lib\site-packages\theano\gof\lazylinker_c.py in <module>()
  59. 124 args = cmodule.GCC_compiler.compile_args()
  60. 125 cmodule.GCC_compiler.compile_str(dirname, code, location=loc,
  61. --> 126 preargs=args)
  62. 127 # Save version into the __init__.py file.
  63. 128 init_py = os.path.join(loc, '__init__.py')
  64. 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)
  65. 2202 # difficult to read.
  66. 2203 raise Exception('Compilation failed (return status=%s): %s' %
  67. -> 2204 (status, compile_stderr.replace('\n', '. ')))
  68. 2205 elif config.cmodule.compilation_warning and compile_stderr:
  69. 2206 # Print errors just below the command line.
  70. 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
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注