导入networkx没有包

时间:2016-10-02 05:04:14

标签: python

我用NetworkX敦促python但是当我打开控制台并运行

时我遇到了问题
adrian@adrian-G551JW:~$ python
Python 2.7.12 (default, Jul  1 2016, 15:12:24) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import networkx as nx
>>> print dir(nx)
['DiGraph', 'Graph', 'GraphMLReader', 'GraphMLWriter' ... ]

但是当我更改目录示例

adrian@adrian-G551JW:~/Documentos/python$ python
Python 2.7.12 (default, Jul  1 2016, 15:12:24) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import networkx as nx
>>> print dir(nx)
['__builtins__', '__doc__', '__file__', '__name__', '__package__']

networkx没有任何套餐。 ¿为什么?

0 个答案:

没有答案