![]() | Ned Batchelder : Blog | Code | Text | Site Installation » Home : Code : coverage.py |
Created 25 July 2010, last updated 5 January 2013 Installing coverage.py is done in the usual ways. You must have setuptools or Distribute installed already, and then you:
or, use: $ pip install coverage or even: $ easy_install coverage Installing from sourceCoverage.py includes a C extension for speed. If you are installing from source, you may need to install the python-dev support files, for example with: $ sudo apt-get install python-dev Installing on WindowsFor Windows, kits are provided on the PyPI page for different versions of Python and different CPU architectures. These kits require that setuptools be installed as a pre-requisite, but otherwise are self-contained. They have the C extension pre-compiled so there’s no need to worry about compilers. Checking the installationIf all went well, you should be able to open a command prompt, and see coverage installed properly: $ coverage --version You can also invoke coverage as a module: $ python -m coverage --version « Previous: coverage.py Next: Coverage command line usage » | |