我正在 Ubuntu 18.04 LTS 版本上安装 caffe-cpu 和 anaconda。
无论如何,我成功地在我的系统上安装了 Anaconda,但是我在安装 caffe 时遇到了麻烦。
我找到了很多页面,例如youtube,但没有帮助,所以我看了很多遍官方安装手册页(I think here is the official page) .在这个页面,
Installing Caffe from source
We may install the dependencies by merely one line
sudo apt build-dep caffe-cpu # dependencies for CPU-only version
sudo apt build-dep caffe-cuda # dependencies for CUDA version
它需要在你的sources.list 中有一个deb-src 行。继续 compliation
我不知道结束行的意思。我试图修复
/etc/apt/sources.list
作为残疾人'#' 部分,但它失败了。我在互联网上找不到正确的方法。当我只关注 compliation链接,他们说与 Make 或 CMake 兼容。我也不知道如何跟踪这些信息。我找到了一些 makefile.config Github page ,当我使用
make all
时失败命令。你能给我一些建议来帮助安装 caffe-cpu 版本吗?感谢您阅读我的问题。
最佳答案
我能够按照这些步骤让它工作,
make all
其次是 make test
make distribute
为了创建最终的库,可以在 (caffe/distribute) 中找到 caffe 的包含目录。 set(Caffe_DIR "/home/software/caffe/distribute")
set(Caffe_INCLUDE_DIRS "/home/software/caffe/distribute/include")
set(Caffe_LIBRARIES "/home/software/caffe/distribute/lib/libcaffe.so")
include_directories(${Caffe_INCLUDE_DIRS})
${Caffe_LIBRARIES}
关于makefile - 在 ubuntu 18.04 LTS 上安装 caffe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54062597/