When using sudo pip install ...
with pip version 6.0.4 or greater, I get some warnings like:
The directory \'/home/drevicko/.cache/pip/log\'
The -H flag is actually for the sudo command and not for pip. As taken from the docs
The -H (HOME) option requests that the security policy set the HOME environment variable to the home directory of the target user (root by default) as specified by the password database. Depending on the policy, this may be the default behavior.
A look at this question might provide more insight into what could be happening.