I was installing mininet on my ubuntu 14.04.3 and during the installation, I got the error "ImportError : No module named setuptools". I tried to install it using sudo apt-get install python-setuptools and it shows that it is already the newest version. But still the installation fails.
For installing mininet I followed the steps on https://github.com/mininet/mininet/blob/master/INSTALL and tried the following commands
git clone git://github.com/mininet/mininet.git cd mininet git tag git checkout 2.2.1 util/install.sh -n
then the installation ran and stopped in between showing the error.