Saturday, August 13, 2011

Install Python Code Coverage in Ubuntu 11.04

Just started to learn using Python on Linux. For me, the most troubling stuffs is to get the program installed over Linux.

Anyhow, these are prerequisites,

  • You have Python installed. Ubuntu comes with Python2.7. But, you can install Python 3.2 following another post 
  • Python Setuptools. If you don't have this, you can install it by 
  • $ sudo apt-get install python-setuptools

These are steps to install Python Code Coverage
  1. Download the Python Code Coverage from As of writing, the version is 3.5
  2. extract the tarball to a folder, .e.g. ~/Downloads/coverage-3.5
  3. In Ubuntu, the default python is 2.7. It will install to /usr/local/lib/python2.7/dist-packages/
newgear@ubuntu:~/Downloads/coverage-3.5$ sudo python install -v

Or, you can do this to install to Python 3.2. It will install to /usr/local/lib/python3.2/dist-packages/

newgear@ubuntu:~/Downloads/coverage-3.5$ sudo python3.2 install -v


  1. Thanks a lot! Just the information I needed.


  2. Thanks for sharing this information with us. Can you also provide some more coding information on the topic of Learning Games and if you can then please provide information on it because i am trying to make some games.

  3. Hello admin how are you doing. I read your post about Install Python Code Coverage in Ubuntu 11.04.
    I like that post and thank you so much for sharing that information with us.