Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing python-igraph 0.7.1-4 throws error as "10038, 'An operation was attempted on something that is not a socket'

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.

like image 634
viva Avatar asked Mar 23 '15 05:03

viva


People also ask

How do I install an Igraph in Python?

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.

How do I download from Igraph?

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.


1 Answers

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.

like image 108
Tamás Avatar answered Oct 10 '22 09:10

Tamás