I installed Graph-tool via homebrew
$ brew --prefix graph-tool
/usr/local/opt/graph-tool
But I still get error when trying to import it.
I have read related posts How to let python3 import graph-tool installed by Homebrew? and tried all the solutions provided there, but none of them fixed it. Adding the path in python doesn't work, re-run homebrew as below doesn't either.
$ brew install graph-tool --with-python2.7
Warning: homebrew/science/graph-tool 2.26_1 is already installed
I usually use python via anaconda, but I also tried importing it from python console and it didn't work.