Skip to content

Commit 87246fa

Browse files
committed
Merge remote-tracking branch 'origin/dev' into dev
2 parents b53bff9 + 9af6d63 commit 87246fa

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
@@ -223,6 +223,23 @@ git clone https://github.com/glato/emerge.git
223223
brew install graphviz
224224
```
225225

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

228245
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)