Windows 7 64-bit
Python 2.7.7 64-bit Anaconda
Trying to install python-igraph python-igraph-0.7.1-4.tar.gz from https://pypi.python.org/pypi/python-igraph.
I have gone through Install python-igraph with the anaconda distribution (windows), Can I install Python windows packages into virtualenvs? and related links to debug the problem.
I understand the problem arises because there is no C-core. Error message also contains this message when i try installing through easy_install -
Cannot find the C core of igraph on this system using pkg-config.
WARNING: we were not able to detect where igraph is installed on
your machine (if it is installed at all). We will use the fallback
library and include pathss hardcoded in setup.py and hope that the
C core of igraph is installed there.
If the compilation fails and you are sure that igraph is installed
on your machine, adjust the following two variables in setup.py
accordingly and try again:
- LIBIGRAPH_FALLBACK_INCLUDE_DIRS
- LIBIGRAPH_FALLBACK_LIBRARY_DIRS
Could you provide any pointers towards a solution. Thanks.
Then you need to download the source code of the Python interface of igraph from PyPI and extract it to a folder. Open the MSYS2 shell, enter this folder and run python setup.py build_c_core . This should compile the C core of the Python interface with MSYS2. You are not done yet, read on.
The simplest way to install the igraph R package is typing install. packages("igraph") in your R session. If you want to download the package manually, the following link leads you to the page of the latest release on CRAN where you can pick the appropriate source or binary distribution yourself.
Christoph Gohlke's page hosts several pre-compiled packages for Python on Windows, including igraph's Python interface. Download the Python wheel corresponding to your Python version from that page and install it using the pip
command. Since you are using Python 2.7, you will need the one that has cp27
in its filename.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With