天天看點

TX2安裝python3-dlib

在我們的項目中dlib用在人臉檢測中,是以需要安裝,但是在第一次實驗的過程中發現,pip3 install dilb==19.8.1并不能成功的安裝dlib的安裝包,是以就上網搜了有關教程。
  1. 首先需要Cmake以及編譯C++成python程式的工具
sudo apt-get install libboost-python-dev cmake
           
  1. download dlib19.7 from http://dlib.net/
  2. unzip the package
  1. install it
sudo python3 setup.py install 
或者
sudo python3 setup.py install --yes USE_AVX_INSTRUCTIONS --yes DLIB_USE_CUDA
           
  1. wait to finished and test
[email protected]:~$ python3
Python 3.5.2 (default, Nov 12 2018, 13:43:14) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import dlib
>>> 
           

PS:

pip install dlib==19.4.0

tx2