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/
安装人脸识别face_recognition dlib报错
最新推荐文章于 2024-09-04 21:45:45 发布
本文介绍了如何解决在安装人脸识别库face_recognition时遇到的dlib依赖错误。步骤包括安装cmake和boost,安装gcc-c++,配置环境变量以及重新安装face_recognition。
摘要由CSDN通过智能技术生成