我试图在linux机器上编译paraview,在自定义位置安装各种版本的python。我可以通过$PYTHON_LIBRARY
指定库,但是如何指定包含路径?我已尝试导出$PYTHON_INCLUDE_DIR="..."
和$PYTHON_INCLUDE_PATH="..."
,但会继续查看/usr/include/python2.7/
。
错误消息是
./makeParaView4
No python headers found in /usr/include/python2.7/
Please install python headers or deactivate
python support by not using the -python option
我该如何解决这个问题?
我使用ParaView-4.1.0和OpenFOAM 2.3.0附带的安装脚本。
谢谢!
托马斯
答案 0 :(得分:1)
旧,但在OpenFOAM 2.4.x中遇到并修复了它
makeParaview4调用以下脚本:
. etc/tools/ParaView4Functions
因此,编辑此文件以指向正确的PYTHON include dir:
pythonInclude=/usr/include/python$pythonMajor
答案 1 :(得分:0)
问题似乎与您用于构建ParaView的脚本有关。编辑脚本并查找选择python2.7的地方。