Python相关环境安装

tensorflow 安装(GPU版)

cuda8.0+cudnn+tensorflow1.4.0安装

cuda8.0+cudnn

参考任意教程即可

https://blog.csdn.net/ygjustgo/article/details/78883981

命令:pip install tensorflow-gpu==1.2.1 -i https://pypi.tuna.tsinghua.edu.cn/simple

安装任意版本的 tensorflow 更改版本即可 

出现错误时 考虑 cuda和tensorflow的版本问题

直接更改版本号即可(tensorflow-gpu==1.2.1)

opencv

参考conda install --channel https://conda.anaconda.org/menpo opencv3

pytorch安装

参考:https://blog.csdn.net/manong_wxd/article/details/78583098

anaconda3+opencv安装方法

https://blog.csdn.net/ytrewq121/article/details/78966309/

亲测可行

1.添加清华镜像站

运行cmd,执行以下代码

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --set show_channel_urls yes

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/

2.安装opencv

然后执行

conda install -c https://conda.binstar.org/menpo opencv

conda install -c https://conda.binstar.org/menpo opencv3

即可

参考:https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/

   http://blog.csdn.net/fairylrt/article/details/43560525

Dlib 和 face_recognition 环境安装

https://www.cnblogs.com/lfydeblog/p/8571988.html

亲测可行

第一.

  装VS,我装的2015版,千万要装VC++模块,否则装了也无法执行.mat文件

第二.  

  安装cmake,官网下载安装包:https://cmake.org/download/ ,注意位数.

第三.

  安装boost,下载:http://www.boost.org/, ,下载到C:\local目录下

  

 

  VS2015开发人员命令提示,可以在这里编Boost,是一个CMD窗口.cd 进入进入之前下载的Boost目录,执行bootstrap.bat

  再在命令中输入b2 install

  3)利用b2编译库文件

   b2 -a --with-python address-model=64 toolset=msvc runtime-link=static

  之前你cmake下载的64位这里写64,如果是32位的就把之前的64改成32

  设置变量

   set BOOST_ROOT=C:\local\boost_1_63_0

   set BOOST_LIBRARYDIR=C:\local\boost_1_63_0\stage\lib

第四.安装dlib

   下载dlib,解压,运行python setup.py install 

第五.安装face_recognition

  pip install face_recognition

 

 

 

 

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值