Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

igraph Failed to install through pip

Tags:

igraph

Igraph failed to install through pip install python-igraph First Error that is shown: Failed building wheel for python-igraph

failed to install

like image 258
bolaji Avatar asked Jan 23 '16 10:01

bolaji


2 Answers

For Ubuntu Users :

Python-igraph requires build-essential and python-dev dependencies.

Installing python-igraph through apt-get

Add the repository of igraph to apt:

sudo add-apt-repository ppa:igraph/ppa

Then update and install the python-igraph package:

sudo apt-get update
sudo apt-get install python-igraph
like image 172
arjun045 Avatar answered Oct 21 '22 07:10

arjun045


Some additional notes for ubuntu (16.04) users, (python 3.6)

I ran in to the same issue. For those of you who might have missed it. The complete list of dependencies are a bit longer than stated here. The list should be as stated in the readme

sudo apt-get install build-essential python-dev libxml2 libxml2-dev zlib1g-dev

this made it possible to install in a virtual environment through pip without adding the ppa (which failed for me with a 404 error).

like image 4
Sparx Avatar answered Oct 21 '22 05:10

Sparx