当我运行这段代码时:
import networkx as nx G = nx.complete_graph(5) nx.draw_networkx(G)
我收到这个错误:AttributeError: module 'matplotlib.cbook' has no attribute 'iterable'
AttributeError: module 'matplotlib.cbook' has no attribute 'iterable'
我怎样才能摆脱这个错误?谢谢你。
PS 我在云端运行该代码,而不是在我的笔记本电脑上。
python matplotlib networkx
matplotlib ×1
networkx ×1
python ×1