如何使用conda安装pydot? [英] How can I use conda to install pydot?

查看:110
本文介绍了如何使用conda安装pydot?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过遵循一些sklearn文档,尝试生成决策树的一些PDF,但是无法在我的机器上安装Pydot.有什么方法可以使用conda安装程序来安装pydot软件包吗?根据我看到的命令行错误,可能是64位问题.我使用binstar搜索来找到打包频道:

Trying to generate some PDF's of decision trees by following some of the sklearn documentation, but can't get Pydot on my machine. Is there any way to use the conda installer to install the pydot package? Based on the command line errors I'm seeing, it may be a 64bit issue. I use binstar search to find the package channel:

C:\binstar search -t conda 

建议使用以下方法详细查看软件包

Which gives the recommendation of looking at the packages in detail using

binstar show j14r/pydot

然后告诉我

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

但是,当我运行conda install命令时,出现以下错误(列出的所有pydot软件包都存在相同的错误):

But when I run the conda install command, I get the following error (same error for all the 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 sends me back to the beginning of this all. Any ideas? Thanks all.

推荐答案

这可能对在Windows 10 64位上正在寻找Anaconda的人有所帮助, 环境:Windows 10 64位,Python 3.5.2,Anaconda 4.2.0(64位)

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

  1. https://graphviz.gitlab下载"graphviz-2.38.msi". io/_pages/Download/Download_windows.html
  2. 执行"graphviz-2.38.msi"文件
  3. 将graphviz bin文件夹添加到PATH系统环境变量中(例如:"C:\ Graphviz2.38 \ bin")
  4. 使用开始菜单转到Anaconda Prompt(确保右键单击并选择以管理员身份运行".如果未以管理员身份打开提示",我们可能会遇到权限问题)
  5. 执行命令:conda install graphviz
  6. 执行命令:pip install git + https://github.com/nlhepler/pydot.git
  7. 执行命令"conda list",并确保列出了pydot和graphviz模块. 谢谢
  1. Download "graphviz-2.38.msi" from https://graphviz.gitlab.io/_pages/Download/Download_windows.html
  2. Execute the "graphviz-2.38.msi" file
  3. Add the graphviz bin folder to the PATH system environment variable (Example: "C:\Graphviz2.38\bin")
  4. Go to Anaconda Prompt using start menu (Make sure to right click and select "Run as Administrator". We may get permission issues if Prompt as not opened as Administrator)
  5. Execute the command: conda install graphviz
  6. Execute the command: pip install git+https://github.com/nlhepler/pydot.git
  7. Execute the command "conda list" and make sure pydot and graphviz modules are listed. Thanks

这篇关于如何使用conda安装pydot?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆