看这个配置尤其是python接口:http://www.itdadao.com/articles/c15a262087p0.html
编译python接口,网上教程有很多(乱七八糟的)。我这边只是针对个别问题/error 提出解决方法:
1. error:在python解释器下,import caffe ,如果出现ImportError: No module named caffe
solution: 把caffe-windows-master\python下的caffe文件夹,整碗端到自用python的site-package下 。
2. error:在python解释器下,import caffe ,如果出现ImportError: No module named google.protobuf.internal
solution:① For protobuf, you may download the codes from https://github.com/google/protobuf.
② Then run python setup.py install。
windows下的话,cmd中输入:pip install protobuf。(有其他模块没有,可以用相同的方式)
如果第②步有错误,修改setup.py相应代码即可(比如注释一些识别不出来名字的那段代码)
3. error:
cudnn.hpp中 cudnnGetErrorString与cudnn.h不兼容问题
solution:“inline const char* cudnnGetErrorString(cudnnStatus_t status)” to
“inline const char * CUDNNWINAPI cudnnGetErrorString(cudnnStatus_t status)”
========================================================
一些其他错误,参考博客:http://blog.csdn.net/wishchin/article/details/45339753