make
make test
make runtestzero@ubuntu:~/Documents/caffe-master$ make pycaffe
CXX/LD -o python/caffe/_caffe.so
python/caffe/_caffe.cpp
touch python/caffe/proto/__init__.py
PROTOC (python) src/caffe/proto/caffe.proto
zero@ubuntu:~/Documents/caffe-master$
>>> import caffe>>> dir(caffe)['__doc__', '__loader__', '__name__', '__package__', '__path__', '__spec__']>>> export
PYTHONPATH=/home/zero/Documents/caffe-master/build/python:$PYTHONPATH
# CPU-only switch (uncomment to build without GPU support).CPU_ONLY := 1# open for OpenBlasBLAS := atlas# Verify anaconda location, sometimes it's in root.ANACONDA_HOME := $(HOME)/anaconda3PYTHON_INCLUDE := $(ANACONDA_HOME)/include \ $(ANACONDA_HOME)/include/python3.5m \ $(ANACONDA_HOME)/lib/python3.5/site-packages/numpy/core/include \# Uncomment to use Python 3 (default is Python 2)# PYTHON_LIBRARIES := boost_python3 python3.5m
# We need to be able to find libpythonX.X.so or .dylib.# PYTHON_LIB := /usr/libPYTHON_LIB := $(ANACONDA_HOME)/lib# Whatever else you find you need goes here.INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/includeLIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/libBUILD_DIR := buildDISTRIBUTE_DIR := distribute# The ID of the GPU that 'make runtest' will use to run unit tests.TEST_GPUID := 0# enable pretty build (comment to see full commands)Q ?= @I have used anaconda with caffe, so I am not 100%, but you should probably use ONLY the anaconda-related settings for PYTHON_LIB and PYTHON_INCLUDE. You are right, there is no PYTHON_LIBRARIES setting for python2.7, I am not sure why that is... Maybe it is set to default values for python2.7 by the Makefile and only replaced with the PYTHON_LIBRARIES setting in the Makefile.config if uncommented.