Created
July 8, 2019 06:34
-
-
Save jegger/34d6a68b88f633d3437984a8a7e12dca to your computer and use it in GitHub Desktop.
pygraphviz installation into virtualenv mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you run into the the following error while installing pygraphviz into a virtualenv | |
# (on macOs, python3) | |
# | |
# pygraphviz/graphviz_wrap.c:2987:10: fatal error: 'graphviz/cgraph.h' file not found | |
# #include "graphviz/cgraph.h" | |
# ^~~~~~~~~~~~~~~~~~~ | |
# 1 error generated. | |
# error: command 'clang' failed with exit status 1 | |
# - Install graphviz via brew | |
# - Download the pygraphviz source code | |
# - Compile the package without virtualenv: python3 setup.py build | |
# - Now do venv/bin/python setup.py install (with your virtualenv python) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment