方法一 首先安装boost库和cmake sudo apt-get install libboost-all-dev sudo apt-get install cmake 随后安装dlib sudo pip install dlib 或者sudo pip3 install dlib 方法二