2020年4月15日 星期三

RaspPI 安裝 dlib

Err: Failed building wheel for dlib
Sol: pip install --upgrade pip

Err: CMake must be installed to build the following extensions: dlib
Sol: sudo apt-get install cmake

在桌面環境安裝會超久 (12小時還沒好...)

使用終端機模式會快很多 (3小時內?)

sudo init 3   # 這個指令會關閉多人/桌面模式
pip install dlib

sudo init 5  # 恢復桌面模式

----

補充

pip install dlib -> 這個是python2用的版本, 因為wheel上沒有已編譯好的whl檔, 所以會變成抓source code下來安裝

如果用python3的話, 就有現成的whl可以用, 速度會超快 XDDDD

沒有留言: