MAC Install Pygraphviz not find header file

Source: Internet
Author: User

The directed graph of networkx can only be used to distinguish between two edges between two points by arrows, but when I reproduce the snake thesis, I need to draw two different sections between two intersections, and finally choose Pygraphviz

Directly through the Anaconda open the corresponding terminal, pip install Pygraphviz, has been error, prompted to find a file under Graphviz, resulting in the installation of Pygraphviz import error, so I installed Graphviz, Is installed through the brew, Online said the official website version may be too old

After installing Graphviz, view the corresponding installation path via brew info Graphviz.

Download Pygraphgiz installation package (Https://github.com/pygraphviz/pygraphviz), unzip, terminal to the corresponding folder, enter the following command to install success: sudo python setup.py Install--include-path=/usr/local/cellar/graphviz/2.40.1/include--library-path=/usr/local/cellar/graphviz/ 2.40.1/lib

Reference article: https://www.douban.com/note/535451318/

MAC Install Pygraphviz not find header file

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.