Installing Pydot and Graphviz in Anaconda environment with Python 3 (MacOS)

5.3k views Asked by At

I would like to install pydot and graphviz in my Python 3 Anaconda distribution, however, conda complains about a conflict between pydot and Python 3 :

UnsatisfiableError: The following specifications were found to be in conflict:
  - pydot -> pyparsing 1.5.6 -> python 2.7*
  - python 3.5*
Use "conda info <package>" to see the dependencies for each package.

I am on MacOS El Capitan.

I found this answer but it didn't help much since when I try to install Graphviz from their website they don't have any version for El Capitan.. So I can't even do step 1.

Any help would be appreciated (changing distribution is not an option..) !

1

There are 1 answers

2
0 _ On

GraphViz can be installed on El Capitan via MacPorts, as discussed here. After installing MacPorts itself, run:

port install graphviz

The GraphViz-related ports are listed here. pydot can be installed from PyPI:

pip install pydot

The dependency of pyparsing that you see is an old version, which means that you are trying to install an old version of pydot. The latest pydot == 1.2.3 is available on PyPI.