While trying to install pygraphviz 1.3 with pip the below error msg is coming
Fatal error 1083 Cannot open file graphviz/cgraph.h: No such file or directory error: command C:\Users\Appdata\Local\Programs\Common\Microsoft\Visual C++ for python\9.0\VC\Bin\cl.exe failed with status 2
I already have Microsoft Visual C++. I am using Python27. Pip is working fine and I have successfully installed graphviz-2.38. I have also tried with this command:
pip install --install-option="--include-path=\C:\graphviz-2.38\release\include\graphviz" --install-option="--library-path=\C:\graphviz-2.38\release\lib\graphviz" pygraphviz
Please let me know how to solve the problem.
Using Graphviz-2.38 default installation path, I've been able to install pygraphviz-1.3.1 using this command:
pip install --global-option=build_ext --global-option="-IC:\Program Files (x86)\Graphviz2.38\include" --global-option="-LC:\Program Files (x86)\Graphviz2.38\lib\release\lib" pygraphviz
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With