Install igraph for Python on Ubuntu 14.04
Jul 29, 2014
This post is more than 5 years old. While math doesn't age, code and operating systems do. Please use the code/ideas with caution and expect some issues due to the age of the content. I am keeping these posts up for archival purposes because I still find them useful for reference, even when they are out of date!
In this post I will describe installing python-igraph on Ubuntu 14.04, using the default Python 2.7. Previously I wrote a (long) post about how to Install Python packages on Ubuntu 14.04 , which provides lots of detail about how I approach Python package installation. In particular, I use pip and install as a user. Of course, you can do otherwise.
On Ubuntut 14.04 python-igraph requires
python-dev packages to be instaleld.
I detail how to install these in the Ubuntu dependencies
section of the Install Python packages on Ubuntu 14.04 post. Assuming
that these dependencies are satisfied, the install command is:
$ pip install --user python-igraph
If you haven't previously compiled the c-core there will be lots of compiling. Once done, you should get a note about successful installation, and information about the install is available using:
$ pip show python-igraph
Of potential interest is the igraph start script. This
script will start IPython or IDLE
(if available) and import
the main namespace.