I have installed pygraphviz using easy_install But when i launch python i have an error:
>>>import pygraphviz as pgv
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named pygraphviz
>>>
Using Ubuntu 12.04 and gnome-terminal.
pip install virtualenv
2.virtualenv myenv
3.source myenv/bin/activate
4.pip install pygraphviz
Then run python and tryimport pygraphviz
as check if it works. – Responsivenesssudo apt-get install python-pip python-virtualenv
– Responsivenesssudo apt-get install graphviz
before you're doingpip install pygraphviz
. In my case I was missing that, on my local VM. – Responsivenesssudo apt-get install libgraphviz-dev
. You can check if graphviz is installed usingdpkg -l | grep 'graphviz'
– Responsiveness