sudo apt-get install python-pip
sudo pip install Cython
也可以用如下命令来安装numpy和matplotlib
sudo apt-get install python-matplotlib
install scipy 前先
sudo apt-get install liblapack-dev gfortran
会报错说不存在路径,找不到文件,解决方法:
在makefile.config中修改
PYTHON_INCLUDE := /usr/include/python2.7 \
make pycaffe
python
>>> import sys
>>> caffe_root="/home/yjy/caffe-master/"
>>> sys.path.insert(0,caffe_root+'python')
>>> import caffe
sudo pip install Cython
也可以用如下命令来安装numpy和matplotlib
sudo apt-get install python-matplotlib
install scipy 前先
sudo apt-get install liblapack-dev gfortran
会报错说不存在路径,找不到文件,解决方法:
在makefile.config中修改
PYTHON_INCLUDE := /usr/include/python2.7 \
make pycaffe
python
>>> import sys
>>> caffe_root="/home/yjy/caffe-master/"
>>> sys.path.insert(0,caffe_root+'python')
>>> import caffe