zoukankan      html  css  js  c++  java
  • ubuntu16.04和ubuntu18.04安装dlib

    -

    # for macOS
    
    brew install cmake brew install boost brew install boost-python --with-python3
    
    # for Ubuntu 16.04
    
    sudo apt-get install build-essential cmake
    sudo apt-get install libgtk-3-dev
    sudo apt-get install libboost-all-dev
    
    # 安装 dlib
    pip install dlib
    git clone https://github.com/davisking/dlib.git
    cd dlib
    mkdir build && cd build && cmake .. && make -j8
    sudo make install
    sudo apt-get -y install libopenblas-dev
    cd ..
    sudo python setup.py install --yes USE_AVX_INSTRUCTIONS

    1. Python.h 缺少报错 :

    /tmp/pip-install-jcduztn1/dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111:20: fatal error: Python.h: 没有那个文件或目录

    解决:需要安装 python-dev 

    命令:sudo apt-get install python3.5-dev

    本人ubuntu中环境是python3.5 所以安装 python3.5-dev

    2. 安装时 依赖错误:

    ***********************************************************************************************

    di@di-pc:~/work/dlib/dlib$ sudo apt-get install python-dev

    正在读取软件包列表... 完成

    正在分析软件包的依赖关系树       

    -

  • 相关阅读:
    spring boot 报错 Failed to read HTTP message
    spring boot 之 Mybatis 配置
    Java生成xlsx格式的excel文件
    遍历FTP目录及下载
    Spring 报错
    git ssh key生成
    spring mvc原理
    LightOJ 1154
    Light OJ 1153
    入栈出栈的顺序问题
  • 原文地址:https://www.cnblogs.com/Ph-one/p/11759231.html
Copyright © 2011-2022 走看看