Search code examples
pythondjangoubuntugraphviz

Enable to use django-extensions with pygraphviz


I'm trying to use pygraphviz under Ubuntu 10.04 within my Django projects.

I used synaptic and it was installed without any problem.

I also installed django-extensions with synaptic (django-extensions has a tool that uses pygraphviz and this is the one that I need)

Now when I try to use django-extensions with pygraphviz

$ python manage.py graph_models -a -g -o model.png

I'm getting an

Error: need pygraphviz python module ( apt-get install python-pygraphviz )

How can I fix this ?


Solution

  • I was facing the same problem on an Ubuntu 14.04 machine and I solved it installing the missing packages as follows:

    sudo apt-get install graphviz-dev
    sudo pip install pygraphviz