简体   繁体   English

pip安装networkit错误

[英]pip install networkit error

I'm using the pip install networkit provide by the networkit homepage, but I don't know what's going wrong here, the terminal keep showing this: 我正在使用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

Version you are trying to install is not compatible with version of python you are using. 您尝试安装的版本与您使用的python版本不兼容。

It seems it made its way to python 3.3.something only - http://bugs.python.org/issue5870 现在看来,这只是方式作出了蟒蛇3.3.something - http://bugs.python.org/issue5870

Using command "pip3 install networkit" would be fine. 使用命令“ pip3 install networkit”就可以了。 Don't forget add other libraries networkit needed to python3 modular. 不要忘记添加python3模块化所需的其他库networkit。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM