Reputation: 911
In order to install networkit... I tried
pip install networkit
But it threw error ....
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']
I then thought of directly running source code of networkit. So i downloaded it from Networkit and ran python setup.py install
But all this throwing same error. Any ideas?
Upvotes: 0
Views: 1135
Reputation: 159
Networkit is not supported on native windows (yet).
If you are on windows 10 ,you can get WSL (Windows Subsystem for Linux) and install Networkit in it , see the said info and installation steps here
BTW,you will get the error of (no compiler found) even if you actually have a suitable compiler installed , this is because the script (setup.py) is really not intended for native windows yet, see the updated (setup.py) here to get the sense of how far it is from running on native windows
Upvotes: 0
Reputation: 7970
https://github.com/networkit/networkit#requirements lists following as 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)
Error you see is saying that python setup cannot locate any c++ compilers.
Depending on on your platform, you need to install at least working compiler and cmake - how/what, depends on your os/distribution.
Upvotes: 0