Skip to content

Instantly share code, notes, and snippets.

@sgsfak
Last active September 11, 2017 14:18
Show Gist options
  • Select an option

  • Save sgsfak/41f92010e2fefa50babb76de624fbaa3 to your computer and use it in GitHub Desktop.

Select an option

Save sgsfak/41f92010e2fefa50babb76de624fbaa3 to your computer and use it in GitHub Desktop.
Install graph_tool with Anaconda

Based on https://gist.github.com/dlozeve/ed59bba8bc8cb9b21e2af36cc9766938 :

## install deps outside conda env:
brew install boost expat cgal google-sparsehash cairomm

conda create -n graph
source activate graph

conda install -c conda-forge python boost scipy numpy expat cgal
conda install -c conda-forge sparsehash
conda install -c conda-forge cairomm matplotlib

## Download latest graph_tool
wget https://downloads.skewed.de/graph-tool/graph-tool-2.22.tar.bz2
tar -xjf graph-tool-2.22.tar.bz2
cd graph-tool-2.22

## Build it:
env CXX=clang++ ./configure --prefix=/Users/ssfak/anaconda/envs/thesis --with-python-module-path=/Users/ssfak/.local/lib/python2.7/site-packages
make -j2
make install

conda install -c conda-forge pygobject pycairo
conda install -c conda-forge jupyter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment