2011-12-16 71 views
0

这是我第一次做编程;我有一个需要网络分析的项目。 我下载networkx 1.6和尝试了块模型,我得到这个错误信息:networkx安装有什么问题

Traceback (most recent call last): 
    File "C:\Users\dell\Desktop\Research Project\python\blockmodel.py", line 52, in <module> 
    G=nx.read_edgelist("hartford_drug.edgelist") 
    File "<string>", line 2, in read_edgelist 
    File "C:\Python27\lib\site-packages\networkx\utils\decorators.py", line 173, in _open_file 
    fh = _dispatch_dict[ext](path, mode=mode) 
IOError: [Errno 2] No such file or directory: 'hartford_drug.edgelist' 

有什么不对?特别是我运行zip文件和蛋文件 感谢您的任何紧急帮助:)

回答

0

您需要的数据文件hartford_drug.edgelist你可以从这里得到:http://networkx.lanl.gov/hg/networkx /raw-file/bec267f40c83/examples/algorithms/hartford_drug.edgelist