历时3天的大坑,记下备忘
主要参考了这篇博文,踩了有很多坑,纠正一下配置的方法
[Ubuntu18.04LTS下基于Anaconda3安装Caffe-GPU及Python3.6 + Pycharm + Mnist例子教程(超详细)](https://blog.csdn.net/CAU_Ayao/article/details/80578600)
我的设备 小米笔记本pro i7 显卡MX150
遇到的问题
- 很重要的一点:更换国内镜像
- NVIDIA官方CUDA支持列表中没有MX150这个显卡,但实际是支持的
- CUDA9.0 (下载.run文件)
- cudnn-9.0-linux-ppc64le-v7.1.solitairetheme8
- 在编译caffe时候出现,这个错误,
istributed 1.21.8 requires msgpack
pip3 install msgpack
caffe编译时出现
fatal error:hdf5.h no such file or directory
看这个博客安装时会提示dateutil版本不对
pip3 install python-dateutil
- boost问题,会在编译成功pycaffe时
>>>import caffe
出现
undefined symbol: _ZN5boost6python6detail11init_moduleER11PyModuleDefPFvvE
查了资料,除了上面的博客要改的地方,Makefile.config
还有一处要修改
# Uncomment to use Python 3 (default isPython 2)
PYTHON_LIBRARIES := boost_python-py34python3.6m
- 提示dateutil相关错误.同样需要pip3安装
pip3 install python-dateutil