Python does not see pygraphviz

前端 未结 6 1458
执念已碎
执念已碎 2020-12-04 21:52

I have installed pygraphviz using easy_install But when i launch python i have an error:

>>>import pygraphviz as pgv
Traceback (most recent call las         


        
6条回答
  •  南笙
    南笙 (楼主)
    2020-12-04 22:23

    On Ubuntu 14.04, there is a problem in auto detecting graphviz library and include files. If you follow the steps below probably you'll be safe.

    1) sudo apt-get install graphviz libgraphviz-dev pkg-config python-pip
    2) pip install pygraphviz --install-option="--include-path=/usr/include/graphviz" --install-option="--library-path=/usr/lib/graphviz/" 
    

提交回复
热议问题