pip install networkit错误

时间:2015-03-12 07:39:44

标签: python terminal pip networkit

我使用网络主页提供的pip install networkit,但我不知道这里出了什么问题,终端会继续显示:

Downloading/unpacking networkit
  Downloading networkit-3.4.1.tar.gz (582kB): 582kB downloaded
  Running setup.py (path:/private/var/folders/sy/lzckft690rn8xfm2f1svp8p00000gn/T/pip_build_runze/networkit/setup.py) egg_info for package networkit
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/private/var/folders/sy/lzckft690rn8xfm2f1svp8p00000gn/T/pip_build_runze/networkit/setup.py", line 2, in <module>
        from setup_util import *
      File "setup_util.py", line 3, in <module>
        from subprocess import DEVNULL
    ImportError: cannot import name DEVNULL
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/private/var/folders/sy/lzckft690rn8xfm2f1svp8p00000gn/T/pip_build_runze/networkit/setup.py", line 2, in <module>

    from setup_util import *

  File "setup_util.py", line 3, in <module>

    from subprocess import DEVNULL

ImportError: cannot import name DEVNULL

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /private/var/folders/sy/lzckft690rn8xfm2f1svp8p00000gn/T/pip_build_runze/networkit
Storing debug log for failure in /Users/runze/.pip/pip.log

2 个答案:

答案 0 :(得分:1)

您尝试安装的版本与您正在使用的python版本不兼容。

它似乎只能通过python 3.3.something - http://bugs.python.org/issue5870

答案 1 :(得分:1)

使用命令&#34; pip3 install networkit&#34;没关系。 别忘了添加python3模块化所需的其他库网络。