brew链接提升到自制的python

时间:2015-06-19 23:27:03

标签: python boost homebrew boost-python

使用系统布局选项--layout=system安装boost with brew(使用brew edit boost155设置)

brew install boost155 --with-python --with-mpi --without-single

我发现我的boost库与osx python对话,而不是自制的版本

$ otool -L `brew list boost155 | grep python.dylib` | grep -i python 
/usr/local/Cellar/boost155/1.55.0_1/lib/libboost_mpi_python.dylib:  
   /usr/local/opt/boost155/lib/libboost_mpi_python.dylib (compatibility version 0.0.0, current version 0.0.0)   @loader_path/libboost_python.dylib (compatibility version 0.0.0, current version 0.0.0)
   /usr/local/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.0) 
   /usr/local/Cellar/boost155/1.55.0_1/lib/libboost_python.dylib:   /usr/local/opt/boost155/lib/libboost_python.dylib (compatibility version 0.0.0, current version 0.0.0)  
  /usr/local/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.0)

如何将boost链接到自制的python库?

1 个答案:

答案 0 :(得分:1)

这就是Homebrew Python。系统Python框架位于/ System / Library / Frameworks。