我通过conda在pyzo4.4.1上安装了NetworkX。我使用的python版本是3.6.1
conda install networkx
conda update networkx
根据NetworkX安装指南中的建议,我还安装了nose进行测试,并使用以下命令运行了完整测试:
^{pr2}$令我惊讶的是,它产生了57个失败的测试。这是指向complete log的链接。下面是一个简短的总结:
Failure:
test_kcomponents.test_example_1_detail_3_and_4
----------------------------------------------------------------------------
Approximate current-flow betweenness centrality: K4
# in total there are 9 other failed tests concerning betweenness centrality
----------------------------------------------------------------------------
test_hits.TestHITS.test_hits
# 4 of these
----------------------------------------------------------------------------
test_pagerank.TestPageRank.test_dangling_pagerank
# 12 of these
----------------------------------------------------------------------------
test_branchings.test_greedy_max1
# 4 of these
...
我试着移除networkx和decorator并通过conda重新安装。然后我又删除了它,并通过pip安装,仍然不起作用。 我需要一些测试失败的函数(例如betweenness)。我们将不胜感激。在
当前版本的
networkx
不支持Python3.6。我们将很快发布networkx
2.0,这将不再是一个问题。2.0版本改变了很多事情,这就是为什么它比以前的版本花了更长的时间来完成。谢谢你的耐心。在您可以在此处跟踪2.0开发:
https://github.com/networkx/networkx/milestone/3
请阅读发布说明的草稿:
http://networkx.readthedocs.io/en/latest/news.html
可以使用以下方法安装当前主分支:
主分支应该处于良好的状态,当我们完成2.0版本时,我们希望得到更多的反馈。在
相关问题 更多 >
编程相关推荐