[英]How to install Networkit python in windows?
為了安裝networkit ...我試過了
pip install networkit
但是它拋出了錯誤....
ERROR: No suitable compiler found. Install any of these: ['g++', 'g++-8', 'g++-7', 'g++-6.1', 'g++-6', 'g++-5.3', 'g++-5.2', 'g++-5.1', 'g++-5', 'g++-4.9', 'g++-4.8', 'clang++', 'clang++-3.8', 'clang++-3.7']
然后我想到了直接運行networkit的源代碼。 所以我從Networkit下載它並運行python setup.py install
但是這一切都拋出了同樣的錯誤。 有任何想法嗎?
https://github.com/networkit/networkit#requirements列出以下作為要求:
* A modern C++ compiler, e.g.: g++ (>= 4.8) or clang++ (>= 3.7)
* OpenMP for parallelism (usually ships with the compiler)
* Python3 (3.4 or higher is recommended, 3.3 supported)
* Pip
* CMake version 3.5 or higher (e.g., pip3 install cmake)
* Build system: Make or Ninja
* Cython version 0.21 or higher (e.g., pip3 install cython)
您看到的錯誤是說 python 安裝程序找不到任何 c++ 編譯器。
根據您的平台,您至少需要安裝工作編譯器和 cmake - 如何/什么,取決於您的操作系統/發行版。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.