问题描述
我是咖啡新手。我正在尝试将其安装在macbook pro上以双启动方式运行的Ubuntu 14.04中。我设法使其开始运行,但在笔记本电脑崩溃后不久,出现了同样的错误 No module named caffe,我按照字母上的说明进行操作,似乎与opencv有关。编译下面复制的caffe时,出现错误消息。
I am new to caffe. I am trying to install it in Ubuntu 14.04 which is running as a dual boot on my macbook pro. I managed to get it running initially but soon after my laptop crashed, following which I have the same error "No module named caffe" I have followed the instructions to the letter and it seems to be an issue with opencv. I get an error message while compiling caffe which I have copied below.
这使我相信我的OpenCV安装有问题吗?真的很感谢您的帮助!
This leads me to believe there is something wrong with my OpenCV installation? Would really appreciate some help!
推荐答案
检查安装
使用OpenCV 3.0编译或显示错误时imread,imencode,imdecode或VideoCapture用一些文本编辑器打开Makefile,在后面添加opencv_imgcodecs。
When compiling with OpenCV 3.0 or errors show imread,imencode,imdecode or VideoCapture open your Makefile with some text editor, add opencv_imgcodecs behind.
库+ = glog gflags protobuf leveldb snappy \
lmdb boost_system boost_filesystem hdf5_hl hdf5 m \
opencv_core opencv_highgui opencv_imgproc opencv_imgcodecs opencv_videoio
LIBRARIES += glog gflags protobuf leveldb snappy \ lmdb boost_system boost_filesystem hdf5_hl hdf5 m \ opencv_core opencv_highgui opencv_imgproc opencv_imgcodecs opencv_videoio
(请参见以下讨论:)
这篇关于无法安装caffe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!