How to use conda to install pydot?

Trying to generate some PDF of decision tree by following some sklearn docs but cannot get Pydot on my machine. Is there a way to use the conda installer to install the pydot package? Based on the command line errors that I see, this may be a problem with the 64-bit version. I use binstar search to find the package channel:

C:\binstar search -t conda 

This gives recommendations for viewing packages in detail using

 binstar show j14r/pydot 

What then tells me

 conda install --channel https://conda.binstar.org/j14r pydot 

But when I run the conda install command, I get the following error (same error for all pydot packages listed):

 Fetching package metadata: ... Error: No Packages found in current win-64 channels matching: pydot You can search for this package with binstar search t conda pydot 

which brings me back to the beginning of it all. Any ideas? Thanks to everyone.

+14
source share
7 answers

This might help someone who is looking for Anaconda on Windows 10 64 bit, Environment: Windows 10 64 bit, Python 3.5.2, Anaconda 4.2.0 (64-bit)

  • Download "graphviz-2.38.msi" from http://www.graphviz.org/Download_windows.php
  • Execute the file "graphviz-2.38.msi"
  • Add the graphviz bin folder to the PATH system environment variable (Example: "C: \ Graphviz2.38 \ bin")
  • Go to Anaconda Prompt using the Start menu (be sure to right-click and select "Run as administrator"). We can get permissions if the "Invitation" does not open as "Administrator").
  • Run the command: conda install graphviz
  • Run the command: pip install git + https://github.com/nlhepler/pydot.git
  • Run the cond list command and make sure the pydot and graphviz modules are listed. Thanks
+24
source

I had the same question for my installation of Anaconda3 x64 on Windows 8.1.

Here is what I did:

1) Installed Github for Windows https://windows.github.com/

2) Opened a Git shell (this is a PowerShell session that allows Git commands)

3) Install pydot from https://github.com/nlhepler/pydot with this command:

 ./pip install git+https://github.com/nlhepler/pydot.git 

4) You can check if pydot has been installed by releasing

 conda list 
+12
source

Try the following:

 conda install -c https://conda.binstar.org/sstromberg pydot 
+3
source

New pydot link for 64-bit installer https://anaconda.org/rmg/pydot or just

conda install -c rmg pydot

+2
source

Most people gave a great overview, here is a procedure that I find useful to myself -

Suppose β†’ Anaconda 4.4.0 or later, Win 8+ and using the anaconda command

  • Few required installations (no order required)
    1. pip install pydot-ng
    2. conda install graphviz
    3. pip install graphviz
  • PATH -> In user environment variables add C: /Anaconda/Library/bin/graphviz to PATH (not path)
  • Go to C: /Anaconda/Lib/site-packages/keras/utils/
    Now open vis_utils.py in the editor and change line 11 from import pydot to import pydot_ng as pydot
  • Everything is configured, now go to the Jupyter laptop and enter the following commands -
    import graphviz
    import pydot_ng as pydot
    pydot.find_graphviz()
    If all goes well, you will find something similar, as shown below:
    {'circo': 'C:\\Anaconda\\Library\\bin\\graphviz\\circo.exe',
    'dot': 'C:\\Anaconda\\Library\\bin\\graphviz\\dot.exe',
    'fdp': 'C:\\Anaconda\\Library\\bin\\graphviz\\fdp.exe',
    'neato': 'C:\\Anaconda\\Library\\bin\\graphviz\\neato.exe',
    'sfdp': 'C:\\Anaconda\\Library\\bin\\graphviz\\sfdp.exe',
    'twopi': 'C:\\Anaconda\\Library\\bin\\graphviz\\twopi.exe'}
+1
source

It looks like the j14r pydot package is built for 32-bit Windows, but I assume you are using a 64-bit cond. See https://conda.binstar.org/j14r .

0
source

Try this (from Anaconda Prompt):

 conda install pydot-ng 

Then in your code:

 try: import pydot_ng as pydot except ImportError: import pydot # if someone running with old installation 

More about Pydot-ng

0
source

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


All Articles