首先创建名为test的虚拟环境,配置python=3.6版本和opencv3
conda create -n test python=3.6
source activate test
conda install -c https://conda.anaconda.org/menpo opencv3
安装 tensorflow
conda install tensorflow==1.10.0
安装 keras
conda install keras==2.2.0
安装tensorflow-gpu
conda install tensorflow-gpu==1.10.0
安装cudnn
conda install cudnn==7.1.3
安装cuda80
conda install pytorch torchvision cuda80 -c soumith
安装numpy
conda install numpy== 1.15.2
安装mtcnn
pip3 install mtcnn