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

转载自:

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

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

https://www.cnblogs.com/go-better/p/7161006.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

发布了19 篇原创文章 · 获赞 6 · 访问量 4万+

猜你喜欢

转载自blog.csdn.net/u010548772/article/details/77868758