
#INSTALL IPYTHON UBUNTU INSTALL#
Sudo ARCHFLAGS="-arch x86_64" python3 setup.py build_ext -inplace -j4 or sudo ARCHFLAGS="-arch x86_64" pip3 install networkit. While the exact reason remains unclear, the actual issue seems to be that the compiler tries to perform a dual architecture build.įix: Enforce a 64-bit build by prepending ARCHFLAGS="-arch x86_64" to your setup/pip command, e.g. The compiler errors mention register problems.
#INSTALL IPYTHON UBUNTU MAC OS X#
Mac OS X 10.10 “Yosemite”: Some users have reported compilation problems on Yosemite with g++ 4.9. One possible way to achieve this is to call pip from within the “Native Tools Command Prompt” provided by Visual Studio. You also have to make sure that MSVC-compiler ( cl.exe) can be found during installation. While installation is also possible via pip, requirements include the official Python package and at least the free Community-Edition of Visual Studio. With the release of NetworKit 9.0 we have an experimental support for Windows installations. However this will likely incur some performance overhead. Note that it is also possible to run available x86_64-packages of NetworKit via Rosetta2. Libopenblas conda-forge/osx-arm64::libopenblas-0.3.18-openmp_h5dd58f0_0 Libnetworkit conda-forge/osx-arm64::libnetworkit-9.0-hc8223b0_1 The following NEW packages will be INSTALLED: Asume you have a clean minimal system, you will first have to install all requirements: The following example uses pip3 for installation on a recent Debian/Ubuntu-based distribution.

The complete list of possibilities is available on Github.

Besides using pip3 (the common Python module way), it is also possible to get it via package manager channels like conda, spack and brew.

There are several ways to install NetworKit. Examples:ĭebian/Ubuntu: apt-get install python3-devĬMake version 3.5 or higher (e.g., pip3 install cmake)Ĭython version 0.29 or higher (e.g., pip3 install cython) The package name depends on your distribution. OpenMP for parallelism (usually ships with the compiler)ĭevelopment libraries for Python3. You will need the following software to install NetworKit as a python package:Ī modern C++ compiler, e.g.: g++ (>= 5.3) or clang++ (>= 3.9)
