【问题标题】:ERROR: NetworKit compilation requires cmake. #288错误:NetworKit 编译需要 cmake。第288章
【发布时间】:2019-01-30 09:20:30
【问题描述】:

我用的是python3.7,安装的minGW有:

  • GCC 8.2.0-3,
  • CMake 3.13.3,
  • 忍者 1.8.2,
  • Cython 0.29.3,

但是

pip install networkit

给出如下错误:

C:\Users\anjali\AppData\Local\Programs\Python\Python37\Scripts>pip install networkit
Collecting networkit
Using cached https://files.pythonhosted.org/packages/d4/36/39298b5c1ddccd062505e7e2f9dcb14235ddd158008bda62cdbb907de8e3/networkit-5.0.tar.gz
Complete output from command python setup.py egg_info:
ERROR: NetworKit compilation requires cmake.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\anjali\AppData\Local\Temp\pip-install-c4hcov67\networkit\

您能否提供解决方案来解决此问题?

【问题讨论】:

标签: python cmake compilation require networkit


【解决方案1】:

this GitHub issue 已经回答了这个问题。 简而言之,Windows 上尚不支持 NetworKit Python 构建,只能构建 NetworKit C++ 核心并将其用作外部 C++ 库。 可能的解决方案是在 Linux VM 中安装 NetworKit 或使用 WSL。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-06-29
    • 2017-06-06
    • 1970-01-01
    • 2023-03-31
    相关资源
    最近更新 更多