简体   繁体   English

安装深度学习框架(Caffe)时遇到错误

[英]facing an error while installing deep learning framework (Caffe)

I'm trying to install Caffe framework on Windows 10 for training a deep learning model using python and I'm facing the error below when I run the file 'build-win.cmd':我正在尝试在 Windows 10 上安装Caffe框架,以使用 python 训练深度学习 model,当我运行文件'build-win'时遇到以下错误:

    The system cannot find the drive specified.
The system cannot find the drive specified.
INFO: ============================================================
INFO: Summary:
INFO: ============================================================
INFO: MSVC_VERSION               = 14
INFO: WITH_NINJA                 = 1
INFO: CMAKE_GENERATOR            = "Ninja"
INFO: CPU_ONLY                   = 0
INFO: CUDA_ARCH_NAME             = Auto
INFO: CMAKE_CONFIG               = Release
INFO: USE_NCCL                   = 0
INFO: CMAKE_BUILD_SHARED_LIBS    = 0
INFO: PYTHON_VERSION             = 2
INFO: BUILD_PYTHON               = 1
INFO: BUILD_PYTHON_LAYER         = 1
INFO: BUILD_MATLAB               = 0
INFO: PYTHON_EXE                 = "python"
INFO: RUN_TESTS                  = 0
INFO: RUN_LINT                   = 0
INFO: RUN_INSTALL                = 0
INFO: ============================================================
The system cannot find the path specified.
-- The C compiler identification is Clang 3.7.0
-- The CXX compiler identification is Clang 3.7.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/Program Files/LLVM/bin/clang.exe
-- Check for working C compiler: C:/Program Files/LLVM/bin/clang.exe - broken
CMake Error at C:/Users/Aryan/Desktop/cmake/cmake-3.20.2-windows-x86_64/share/cmake-3.20/Modules/CMakeTestCCompiler.cmake:66 (message):
  The C compiler

    "C:/Program Files/LLVM/bin/clang.exe"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: D:/caffe/scripts/build/CMakeFiles/CMakeTmp

    Run Build Command(s):C:/Users/Aryan/Downloads/Compressed/ninja/ninja.exe cmTC_105cf && [1/2] Building C object CMakeFiles/cmTC_105cf.dir/testCCompiler.c.obj
    [2/2] Linking C executable cmTC_105cf.exe
    FAILED: cmTC_105cf.exe
    cmd.exe /C "cd . && C:\PROGRA~1\LLVM\bin\clang.exe   CMakeFiles/cmTC_105cf.dir/testCCompiler.c.obj -o cmTC_105cf.exe -Wl,--out-implib,libcmTC_105cf.dll.a -Wl,--major-image-version,0,--minor-image-version,0  -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd ."
    clang.exe: error: unable to execute command: program not executable
    clang.exe: error: linker command failed with exit code 1 (use -v to see invocation)
    ninja: build stopped: subcommand failed.





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:18 (project)


-- Configuring incomplete, errors occurred!
See also "D:/caffe/scripts/build/CMakeFiles/CMakeOutput.log".
See also "D:/caffe/scripts/build/CMakeFiles/CMakeError.log".
ERROR: Configure failed

I have installed clang for the C compiler and I've also added it to PATH.我已经为 C 编译器安装了clang ,并且我还将它添加到了 PATH。

any solution on how to overcome this error would be much appreciated.任何有关如何克服此错误的解决方案将不胜感激。

For the Windows build, if my memory serves me right, Visual Studio 2013 or 2015 were supported.对于 Windows 构建,如果我的 memory 对我有用,则支持 Visual Studio 2013 或 2015。 In order to have a successful compilation, you need to have one of those为了成功编译,您需要拥有其中之一

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM