程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

[deep learning] [Dlib] Python installation Dlib, docker, dockerfile, python3.8

編輯:Python

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


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved