Search code examples
64-bitigraphanaconda

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.


Solution

  • 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.