ubuntu16.04 caffe+cuda8.0+cudnn6.0+opencv2.3.14 配置

来源:互联网 发布:大禹网络 编辑:程序博客网 时间:2024/06/07 02:23

转载自:

http://blog.csdn.net/sinat_17196995/article/details/53466524

http://www.cnblogs.com/xuanxufeng/p/6150593.html

先看上面两个网站


写给自己看的,防止以后忘了,先站坑

先配pip源,比如阿里云源(或者豆瓣的也行):

在终端用gedit打开~/.pip/pip.conf文件:

gedit ~/.pip/pip.conf
然后填入如下内容并保存、关闭gedit:

[global]
index-url = http://mirrors.aliyun.com/pypi/simple/

[install]
trusted-host=mirrors.aliyun.com

在配置pycaffe 接口的时候
在makefile.conf中修改如下
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/hdf5/serial
同时打开
WITH_PYTHON_LAYER := 1

cd python 文件夹
for req in $(cat requirements.txt); do pip install $req;done

原创粉丝点击