make sure you have done :
make all
make pycaffe
make distribute
in the path where you place caffe.
The second method
import sys
sys.path.append("/(你的caffe-master路径)/caffe-master/python")
sys.path.append("/(你的caffe-master路径)/caffe-master/python/caffe")