Recommended: Graph-tool one-line install commands:
anaconda
conda create --name gt -c conda-forge graph-tool
homebrew
brew install graph-tool
debian/ubuntu
apt-get install python3-graph-tool
The following information is no longer maintained:
Here are the steps to install graph-tool on Ubuntu 14.04, including all the prerequisites:
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install expat
sudo apt-get -y install libsparsehash-dev
sudo apt-get -y install gtk+3
sudo apt-get -y install libboost-all-dev
sudo apt-get -y install graphviz
sudo apt-get -y install build-essential
sudo apt-get -y install libcairo2-dev
sudo apt-get -y install python-pip
sudo apt-get -y install python-dev
sudo apt-get -y install python-matplotlib
sudo apt-get -y install gfortran libopenblas-dev liblapack-dev
sudo apt-get -y install libcgal-dev
sudo apt-get -y install python-numpy
sudo apt-get -y install python2.7-config
sudo apt-get -y install python-cairo
sudo apt-get -y install python-scipy
sudo apt-key adv --keyserver pgp.skewed.de --recv-key 98507F25
echo 'deb http://downloads.skewed.de/apt/trusty trusty universe' | sudo tee -a /etc/apt/sources.list
echo 'deb-src http://downloads.skewed.de/apt/trusty trusty universe' | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get -y --force-yes install python-graph-tool
I have the same problem in 16.04.
root@daniel-Lenovo-Yoga-500-14IBD:/home/Documents# sudo apt-get -y --force-yes install python-graph-tool
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python-graph-tool : Depends: libboost-coroutine1.61.0 but it is not installable
Depends: libboost-iostreams1.61.0 but it is not installable
Depends: libboost-python1.61.0 but it is not installable
Depends: libboost-regex1.61.0 but it is not installable
Depends: libboost-graph1.61.0 but it is not installable
Depends: libboost-system1.61.0 but it is not installable
Depends: libboost-thread1.61.0 but it is not installable
E: Unable to correct problems, you have held broken packages.
any idea? Thanks in advance.