Skip to content

Instantly share code, notes, and snippets.

@Torenable
Last active January 5, 2017 21:29
Show Gist options
  • Save Torenable/a774f1cfe262c5a8e09336fc51ff5783 to your computer and use it in GitHub Desktop.
Save Torenable/a774f1cfe262c5a8e09336fc51ff5783 to your computer and use it in GitHub Desktop.
Build `mxnet` and `python-igraph`
# Compile `mxnet`
git clone --recursive https://github.com/dmlc/mxnet
cd mxnet
cp make/osx.mk ./config.mk
echo "USE_BLAS = openblas" >> ./config.mk
echo "ADD_CFLAGS += -I/usr/local/opt/openblas/include" >> ./config.mk
echo "ADD_LDFLAGS += -L/usr/local/opt/openblas/lib" >> ./config.mk
echo "ADD_LDFLAGS += -L/usr/local/lib/graphviz/" >> ./config.mk
make -j$(sysctl -n hw.ncpu)
# compile `python-igraph`
git clone --recursive -b release-0.7 https://github.com/igraph/python-igraph
# Install python package
sudo /usr/local/var/pyenv/versions/miniconda3-latest/envs/python34/bin/python3.4 setup.py install
sudo /usr/local/var/pyenv/versions/miniconda3-latest/envs/python35/bin/python3.5 setup.py install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment