环境配置确实比较麻烦。
运行博客http://www.cnblogs.com/denny402/p/5092075.html(推荐)遇到些问题。
anaconda2安装python
1、import caffe失败处理方法:
-
Make sure you have compiled caffe and you have the following file under
/Release/pycaffe/caffe
you have_caffe.pyd
and_caffe.lib
-
Put the path where _caffe.pyd is located to your PATH environment variable.
DO NOT PUT IT to PYTHONPATH! -
In PYTHONPATH put only your
/Release/pycaffe
folder and nothing else related to caffe!
首先从google(https://github.com/google/protobuf/releases)上下载protobuf和protoc对应的程序,然后把protoc里的protoc.exe放到protobuf\python中。依次运行执行指令 python setup.py build, python setup.py test, python setup.py install,自动完成配置。
plt.show()