python安装dlib报错_pip install dlib安装失败

Collecting dlib

Using cached https://files.pythonhosted.org/packages/54/ff/5781a11bdc0d1c90a813f3f66d460abf628e5114856a842d18d43f709a7a/dlib-19.10.0.tar.gz

Building wheels for collected packages: dlib

Running setup.py bdist_wheel for dlib ... error

Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-ZA44JR/dlib/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-9SSCJL --python-tag cp27:

running bdist_wheel

running build

running build_py

package init file 'dlib/__init__.py' not found (or not a regular file)

running build_ext

Invoking CMake setup: 'cmake /tmp/pip-install-ZA44JR/dlib/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-ZA44JR/dlib/build/lib.linux-i686-2.7 -DPYTHON_EXECUTABLE=/usr/bin/python -DCMAKE_BUILD_TYPE=Release'

-- The C compiler identification is GNU 4.4.7

-- The CXX compiler identification is GNU 4.4.7

-- Check for working C compiler: /usr/bin/cc

-- Check for working C compiler: /usr/bin/cc -- works

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Check for working CXX compiler: /usr/bin/c++

-- Check for working CXX compiler: /usr/bin/c++ -- works

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

-- Found PythonInterp: /usr/bin/python (found version "2.7.14")

-- Found PythonLibs: /usr/local/python27/lib/libpython2.7.so

-- Performing Test HAS_CPP14_FLAG

-- Performing Test HAS_CPP14_FLAG - Failed

-- Performing Test HAS_CPP11_FLAG

-- Performing Test HAS_CPP11_FLAG - Failed

CMake Error at /tmp/pip-install-ZA44JR/dlib/dlib/external/pybind11/tools/pybind11Tools.cmake:32 (message):

Unsupported compiler -- pybind11 requires C++11 support!

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值