1

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..) !

Toool
  • 361
  • 3
  • 18

1 Answers1

0

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.

0 _
  • 10,524
  • 11
  • 77
  • 109
  • Unfortunately MacPorts is in conflict with Anaconda, I've had seriously annoying problems when using both together ! Is there any solution that works without MacPorts ? – Toool Oct 04 '17 at 15:36
  • There is a `*.pkg` on GraphViz's website, or building GraphViz from [source](https://github.com/ellson/MOTHBALLED-graphviz). Regarding Python, I've never used Anaconda, and in my indirect experience it only causes problems (flat is better than nested [[PEP 20](https://www.python.org/dev/peps/pep-0020/)]). I used to use MacPorts, until I realized that is nested too. The simplest solution that always works is to build CPython from its [source](https://github.com/python/cpython), which is what I do. On MacOS, just make sure to use the default system compiler, and install OpenSSH from source. – 0 _ Oct 04 '17 at 19:47