2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Python実践データ分析100本ノック:ノック71でNetworkXError

Posted at

結論

decoratorのバージョンを4.3.0に落とす

エラー詳細

NetworkXError                             Traceback (most recent call last)
<ipython-input-1-55dde0c34e24> in <module>
     18             G.add_edge(str(i),str(j))
     19 
---> 20 nx.draw_networkx(G,node_color="k", edge_color="k", font_color="w")
     21 plt.show()

-----------------
NetworkXError: random_state_index is incorrect

解決方法

decoratorのバージョン確認

$ conda list
decorator                 5.0.6              pyhd3eb1b0_0

decoratorのバージョンを4.3.0に指定してインストール

$ pip install decorator==4.3

decoratorのバージョン再確認

decorator                 4.3.0                    pypi_0    pypi

参考記事

https://github.com/microsoft/CyberBattleSim/issues/4

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?