Skip to content

Commit 9af6d63

Browse files
authored
Merge pull request #37 from ctreffs/patch-1
Add additional install step on Apple Silicon Mac
2 parents 6ea8946 + 8ec01a3 commit 9af6d63

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,23 @@ git clone https://github.com/glato/emerge.git
222222
brew install graphviz
223223
```
224224

225+
If you encounter the following error on an Apple silicon Mac
226+
227+
```sh
228+
pygraphviz/graphviz_wrap.c:2711:10: fatal error: 'graphviz/cgraph.h' file not found
229+
#include "graphviz/cgraph.h"
230+
^~~~~~~~~~~~~~~~~~~
231+
1 error generated.
232+
```
233+
234+
you need to run the following command once to update the pygraphviz include directories for the new homebrew environment
235+
236+
```sh
237+
pip install --global-option=build_ext --global-option="-I$(brew --prefix graphviz)/include/" --global-option="-L$(brew --prefix graphviz)/lib/" pygraphviz
238+
```
239+
240+
See the issue in context [here](https://github.com/pygraphviz/pygraphviz/issues/11).
241+
225242
### 2️⃣.2️⃣ ~ (*macOS*) Create a virtual environment
226243

227244
Check of you have the latest Python 3 installed on your macOS. I recommend installing/using Python 3 from [Homebrew](https://brew.sh). Create a Python 3 virtual environment (optionally within the project structure)

0 commit comments

Comments
 (0)