问题
anaconda3环境下安装boost,找不到pyconfig.h
解决办法:
-
首先确保python的requirement.txt 是否成功安装
-
输入以下代码
pip install python-dev
pip install python3-dev
pip install libpython-dev
pip install libpython3-dev
pip install libpython3.7-dev
-
查看boost文件夹下 project_config.jam中python.configure,修改为anaconda下python的位置
-
export CPLUS_INCLUDE_PATH="/home/y/anaconda3/envs/py37/include/python3.7m"
-
ln -s /home/y/anaconda3/envs/py37/include/python3.7m /home/y/anaconda3/envs/py37/include/python3.7