我希望能够在 Python 中创建图形决策树,我目前正在尝试同时安装pydot
和graphviz
.
我使用 Anaconda 作为我的环境(以及 Spyder),并尝试运行以下代码行
conda install -c https://conda.binstar.org/t/TOKEN/j14r pydot
结果
Error: unknown host: http://repo.continuum.io/pkgs/pro/win-32/
Error: unknown host: http://repo.continuum.io/pkgs/free/win-32/
Error: unknown host: https://conda.binstar.org/t/TOKEN/j14r/win-32/
Error: No packages found matching: pydot
我也尝试过使用pip install pydot
并pip install graphviz
得到类似的结果:
Downloading/unpacking pydot
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement pydot
Cleaning up...
No distributions at all found for pydot
Storing complete log in [...]
我对试图弄清楚如何解决这个问题感到非常无聊,所以我希望那里的任何人都可以给我一些提示。
谢谢