caffe中编译python一些错误及其解决方法

来源:互联网 发布:上海java招聘会 编辑:程序博客网 时间:2024/06/10 11:20

1、如果是缺少scikit-learn

方法一:

安装sklearn

安装pip, pip是一个给python用的挺不错的安装工具。

sudo apt-get install python-pip

安装sklearn

pip install -U scikit-learn

然后再安装scikit-image

 sudo pip install scikit-image

方法二:

sudo apt-get install python-skimage sudo apt-get install python-numpy python-scipy python-matplotlib python-sklearn python-skimage python-h5py python-protobuf python-leveldb python-networkx python-nose python-pandas python-gflags Cython ipython

sudo apt-get update

2、如果还没有安装caffe的python接口,则进行如下编译

在caffe-master目录下:

$ make pycaffe

3、如果在编译python的时候提示没有导入caffe,则在当前的命令窗口下

export PYTHONPATH=$PYTHONPATH:/home/zf/caffe/python

4、如果提示没安装google的protobuf,则

sudo pip install protobuf

5、如果提示未安装cv,则

sudo apt-get install python-opencv

sudo apt-get install python-numpy

6、如果找不到链接库openblas,error while...,则

export LD_LIBRARY_PATH=/opt/OpenBLAS/lib:$LD_LIBRARY_PATH



0 0
原创粉丝点击