# Installing pythonwhois

<< back to index
To install pythonwhois, you need to have pip installed. It's available on most distributions in a package named python-pip.
The pythonwhois package includes the pwhois tool.

## Installing it from scratch

<h7>Code:</h7>

    pip install pythonwhois

If you are using Python 2.6 and get an ImportError about OrderedDict, also do the following:
<h7>Code:</h7>

    pip install ordereddict

## Updating from a previous version

Make sure to read the upgrade notes before updating to a new major pythonwhois version!
<h7>Code:</h7>

    pip install --upgrade pythonwhois