Python does not see pygraphviz

前端 未结 6 1442
执念已碎
执念已碎 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:25

    Assuming that you're on Ubuntu please look at following steps

    1. sudo apt-get install graphviz libgraphviz-dev pkg-config
    2. Create and activate virtualenv if needed. The commands looks something like sudo apt-get install python-pip python-virtualenv
    3. Run pip install pygraphviz
    4. Run terminal and check by importing and see if it works

提交回复
热议问题