安装人脸识别face_recognition dlib报错

本文介绍了如何解决在安装人脸识别库face_recognition时遇到的dlib依赖错误。步骤包括安装cmake和boost,安装gcc-c++,配置环境变量以及重新安装face_recognition。
摘要由CSDN通过智能技术生成
Building wheel for dlib (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/sun/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-hjbp9kz5/dlib_b3dfef11487648faadb9b33d6d34f7e2/setup.py'"'"'; __file__='"'"'/tmp/pip-install-hjbp9kz5/dlib_b3dfef11487648faadb9b33d6d34f7e2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-05yyhw55
       cwd: /tmp/pip-install-hjbp9kz5/dlib_b3dfef11487648faadb9b33d6d34f7e2/
  Complete output (50 lines):
  running bdist_wheel
  running build
  running build_py
  package init file 'tools/python/dlib/__init__.py' not found (or not a regular file)
  running build_ext
  Building extension for Python 3.7.3 (default, Mar 27 2019, 22:11:17)
  Invoking CMake setup: 'cmake /tmp/pip-install-hjbp9kz5/dlib_b3dfef11487648faadb9b33d6d34f7e2/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-hjbp9kz5/dlib_b3dfef11487648faadb9b33d6d34f7e2/build/lib.linux-x86_64-3.7 -DPYTHON_EXECUTABLE=/home/sun/anaconda3/bin/python -DCMAKE_BUILD_TYPE=Release'
  CMake Error at /home/sun/anaconda3/lib/python3.7/site-packages/cmake/data/share/cmake-3.18/Modules/CMakeDetermineCCompiler.cmake:49 (message):
    Could not find compiler set in environment variable CC:
  
    /usr/local/bin/gcc.
  Call Stack (most recent call first):
    CMakeLists.txt:14 (project)
  
  
  CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
  CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
  -- Configuring incomplete, errors occurred!
  See also "/tmp/pip-install-hjbp9kz5/dlib_b3dfef11487648faadb9b33d6d34f7e2/build/temp.linux-x86_64-3.7/CMakeFiles/CMakeOutput.log".
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值