简体   繁体   中英

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

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

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

port install graphviz

The GraphViz-related ports are listed here . pydot can be installed from PyPI , for either Python 2 or Python 3:

pip install pydot

The dependency of pyparsing 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM