caffe anaconda3 Python.h: 没有那个文件或目录
Makefile.config中
正确配置方法
ANACONDA_HOME := /home/lbg/anaconda3
PYTHON_INCLUDE := $(ANACONDA_HOME)/include \
$(ANACONDA_HOME)/include/python3.6m \
$(ANACONDA_HOME)/lib/python3.6/site-packages/numpy/core/include
# Uncomment to use Python 3 (default is Python 2)
PYTHON_LIBRARIES := boost_python3 python3.5m
# PYTHON_INCLUDE := /usr/include/python3.5m \
# /usr/lib/python3.5/dist-packages/numpy/core/include
# We need to be able to find libpythonX.X.so or .dylib.
PYTHON_LIB := /usr/lib
PYTHON_LIB := $(ANACONDA_HOME)/lib
错误地方:PYTHON_INCLUDE跟着的两行代码注释了,
python.h文件在: $(ANACONDA_HOME)/include/python3.6m \
文章来源: blog.csdn.net,作者:网奇,版权归原作者所有,如需转载,请联系作者。
原文链接:blog.csdn.net/jacke121/article/details/79508926
- 点赞
- 收藏
- 关注作者
评论(0)