I installed NetworkX via conda on pyzo4.4.1. The python version I use is 3.6.1
conda install networkx
conda update networkx
As it is suggested in the installation guide of NetworkX, I also installed nose for testing and ran the full test with the following command:
import networkx as nx
nx.test()
To my surprise, it yielded 57 failed tests. Here is a link to the complete log. Here's a short summary:
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
...
I tried removing the networkx and decorator and reinstalling it via conda. I then removed it yet again and installed via pip, still it does not work. I need some of the functions that are failing the tests (for example betweenness). Help would be greatly appreciated.