pip是一个替代品easy_install.但是我应该在Windows上安装pip使用easy_install吗?有没有更好的办法?
当我用pydot运行一个非常简单的代码时
import pydot
graph = pydot.Dot(graph_type='graph')
for i in range(3):
edge = pydot.Edge("king", "lord%d" % i)
graph.add_edge(edge)
vassal_num = 0
for i in range(3):
for j in range(2):
edge = pydot.Edge("lord%d" % i, "vassal%d" % vassal_num)
graph.add_edge(edge)
vassal_num += 1
graph.write_png('example1_graph.png')
Run Code Online (Sandbox Code Playgroud)
它打印出错误信息:
Couldn't import dot_parser, loading of dot files will not be possible.
Run Code Online (Sandbox Code Playgroud)
我正在使用python 2.7.3
python ×2
easy-install ×1
graphviz ×1
installation ×1
pip ×1
pydot ×1
python-2.7 ×1
windows ×1