目前 Homebrew 提供的 Python 3 是 3.4.1,所以以下各路徑和檔案修改都是用 3.4.1,若版本有變要做相對應的修改
- brew install python3
- pip3 install numpy
- brew install gcc (scipy 需要 Fortran Compiler)
- pip3 install scipy
- 修改 /usr/local/Library/Formula/boost.rb https://gist.github.com/jiayun/f331db2bef429d532ea4
- brew install boost –with-python3 –c++11
- 安裝 XQuartz http://xquartz.macosforge.org/
- brew install pkg-config
- brew install –c++11 cgal cairo cairomm py3cairo google-sparsehash
- pip3 install matplotlib
- brew tap homebrew/science
- 修改 /usr/local/Library/Formula/graph-tool.rb https://gist.github.com/jiayun/66682b5deb80bb32d0a3
- cd /usr/local/Cellar/py3cairo/1.10.0/include/pycairo/
- ln -s py3cairo.h pycairo.h
- export PYTHON=/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/bin/python3.4m
- brew install graph-tool –with-google-sparsehash