brew link 提升自制软件 python
brew link boost to homebrew python
使用系统布局选项 --layout=system
(使用 brew edit boost155
设置)使用 brew 安装 boost 后
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)
如何 link 提升自制程序 python 库?
那就是 Homebrew Python。系统 Python 框架在 /System/Library/Frameworks.
使用系统布局选项 --layout=system
(使用 brew edit boost155
设置)使用 brew 安装 boost 后
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)
如何 link 提升自制程序 python 库?
那就是 Homebrew Python。系统 Python 框架在 /System/Library/Frameworks.