How to install "pygraphviz" via anaconda

I tried to output one of my DiGraphs as follows: A=nx.drawing.nx_agraph.to_agraph(Graph) nx.drawing.nx_agraph.write_dot (dot_filename)

However, I received:

ImportError: ('requires pygraphviz', ' http://pygraphviz.imtqy.com/ ')

Anaconda command windows say

graphviz 2.38.0 0 already installed ..

Can anyone help who could use Graphviz through Anaconda?

+5
source share
2 answers

You can try the following:

 conda install -c pdrops pygraphviz=1.2 
+1
source

Check the availability of conda pygraphviz for your system. The previous answer seems to be a package only available for linux and osx 64. Try it

 conda install -c marufr pygraphviz=1.3.1 

this version shows details that should be compatible with win32 and 64, as well as linux and osx. You can find more packages from any user who has typed

 conda install -c binstar binstar 

After that, for example, to find all the pygraphviz packages in the public code channels

 binstar search -t conda pygraphviz 

Finally, find your platform compatible and install from the command line, as usual.

0
source

Source: https://habr.com/ru/post/1246787/


All Articles