centos安装caffe python接口时候可能出现错误
1.安装pip
sudo yum install python-pip
sudo pip install requests[security]
2.安装scipy
# 出现找不到 lapack或blas
yum install lapack lapack-devel blas blas-devel
3.安装scikit-image
# 出现找不到freetype和png、jpeg
sudo yum -y install freetype-devel
sudo yum install libpng-devel
sudo yum install libjpeg-devel
4.安装过程中找不到其他依赖包(主要还是原来的pypip软件源下载的问题)
比如在这个:
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('google-apputils')
可以通过下面命令手动安装
pip install google-apputils
5.执行make pycaffe
的时候提示找不到numpy
python/caffe/_caffe.hpp:8:31: fatal error: numpy/arrayobject.h: No such file or directory
google了下:
Replicated for Fedora 20. Had th