怎么安装nerworkx_NetworkX已安装,但无法将其导入Python IDLE

需要帮助来确认我的NetworkX安装并成功地将NetworkX导入Python IDLE。在

我安装了MacOSX10.7.5和Python3.3应用程序。我以前成功地使用过python3.3。在

我通过执行以下步骤安装了Network X:1. downloaded networkx-1.8.1.tar.gz into my Downloads folder

2. double clicked on the the tar.gz file, and the contents were extracted

in a subfolder called networkx-1.8.1

3. went into Mac Terminal and changed my directory to the Downloads/networkx-1.8.1 folder

4. I entered the following Terminal command to install Networkx:

sudo python ./setup.py install

This installation appears to be successful.

5. I opened IDLE and typed: import networkx as nx, and I received the following error

message:

ERROR MESSAGE:

>>> import networkx as nx

Traceback (most recent call last):

File "", line 1, in

import networkx as nx

ImportError: No module named 'networkx'

>>>

我的问题是:

1你知道NetworkX是否与python3.3兼容?

2你知道我如何将NetworkX导入IDLE以便使用它吗?在

非常感谢您能提供的任何帮助。:-)

你可能感兴趣的:(怎么安装nerworkx)