Ubuntu16.04安装dlib

由于需要借用工具,才能访问这个网站,可以去外网的可忽略,我只是搬运工!!

我们所有需要的命令行的输入都须在终端Terminator中进行,ctrl+alt+t三个键同时按即可进入

准备工作先将pip升级到19.0

见:https://blog.csdn.net/shuipengpeng/article/details/89223248

不然会出现各种问题

How to install dlib v19.9 or newer (w/ python bindings) from github on macOS and Ubuntu  Pre-reqs:  Have Python 3 installed. On macOS, this could be installed from homebrew or even via standard Python 3.6 downloaded installer from https://www.python.org/download. On Linux, just use your package manager. On macOS: Install XCode from the Mac App Store (or install the XCode command line utils). Have homebrew installed On Linux: For a full list of apt packages required, check out the example Dockerfile and copy what's installed there. These instructions assume you are using Ubuntu 16.04 or newer. If you are using 14.04, you can try these installation instructions instead to work around the old CMake version. These instructions assume you don't have an nVidia GPU and don't have Cuda and cuDNN installed and don't want GPU acceleration (since none of the current Mac models support this).

Clone the code from github: 

git clone https://github.com/davisking/dlib.git 

Build the main dlib library (optional if you just want to use Python): 

cd dlib 
mkdir build
cd build
cmake ..
cmake --build .

在下一步骤前,需将python3设置成默认

设置默认python版本

Build and install the Python extensions: 

cd ..
sudo python3 setup.py install#or sudo python setup.py install

 

At this point, you should be able to run python3 and type import dlib successfully.

©️2020 CSDN 皮肤主题: 大白 设计师: CSDN官方博客 返回首页
实付0元
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值