From 0a217ec44be81c95f48ab48e9e6e9ea71f98d4a5 Mon Sep 17 00:00:00 2001 From: "Cristina E. Gonzalez-Espinoza" Date: Thu, 6 Feb 2025 15:21:34 +0100 Subject: [PATCH] Add installation information for macOS --- python/mlcroissant/README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/python/mlcroissant/README.md b/python/mlcroissant/README.md index 13f6d2042..563d9e2bd 100644 --- a/python/mlcroissant/README.md +++ b/python/mlcroissant/README.md @@ -33,6 +33,22 @@ This can be fixed by running sudo apt-get install python3-dev graphviz libgraphviz-dev pkg-config ``` +### macOS possible issues + +In the case of macOS graphviz and pygraphviz can be installed with brew, running: +``` +brew install graphviz +pip install --config-settings="--global-option=build_ext" \ + --config-settings="--global-option=-I$(brew --prefix graphviz)/include/" \ + --config-settings="--global-option=-L$(brew --prefix graphviz)/lib/" \ + pygraphviz +``` + +The command can fail also due to missing a rust compiler. The standar way to install it is: +``` +curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh +``` + ### Conda installation Conda can help create a consistent environment. It can also be useful to install packages without root access.