Skip to content

Instantly share code, notes, and snippets.

@openp2pdesign
Last active February 19, 2020 09:20
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save openp2pdesign/8864593 to your computer and use it in GitHub Desktop.
Save openp2pdesign/8864593 to your computer and use it in GitHub Desktop.
Install graph-tool on Mac OS Mavericks with python installed with brew

Install prerequisites

Install Homebrew

Install Python

  • brew install python
  • vim ~/.bash_profile
  • and insert this code:

Set architecture flags

export ARCHFLAGS="-arch x86_64"

Ensure user-installed binaries take precedence

export PATH=/usr/local/bin:$PATH

Load .bashrc if it exists

test -f ~/.bashrc && source ~/.bashrc

  • . ~/.bash_profile
  • easy_install pip # If you don't have already pip installed

Install libraries and prerequisites

  • brew install gcc
  • pip install numpy
  • pip install scipy
  • brew install freetype
  • pip install matplotlib

Install graph-tool with brew

  • brew tap homebrew/science
  • brew install graph-tool
@jefftrull
Copy link

jefftrull commented Feb 3, 2019

@neuronphysics suspect your problem is the same as mine, reported here: https://git.skewed.de/count0/graph-tool/issues/509. Solution is to build from git...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment