Want to use dlib Test some face clustering algorithms , To tell you the truth , Just install the environment and I'll throw up , Go straight up docker after , I feel much better .
I almost know one Mac and Ubuntu The installation method of is not bad : link .
The premise is that you need to know a little docker Knowledge :https://blog.csdn.net/x1131230123/article/details/118032295, Otherwise, you can only refer to mine on the original machine dockerfile To install . It will change in the future version ,dlib There may be problems with it , So I docker push A copy of image.
With CentOS7 Build on docker image( The same is true of the steps you install on the host ):
dockerfile:
FROM kevinchina/deeplearning:miniconda3base0.2
RUN yum install gtk3-devel boost cmake -y
RUN yum install centos-release-scl -y
RUN yum install devtoolset-8-gcc* -y
RUN source /opt/rh/devtoolset-8/enable && . ~/.bashrc && \
conda activate py38 && \
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip -U && \
pip install cmake && \
pip install dlib
In short , need cmake、boost,gcc Need a higher version . do dockerfile Of course docker push, You can also choose to use mine directly docker Environmental Science :
docker run -it kevinchina/deeplearning:miniconda3base0.7 bash