This is identical to this question, but the title is incorrect. And, the symptoms are more odious than explained in this post.
From a Ubuntu 14.04 upgrade to 16.04 -- Pip shows packages installed whilst in an active virtual environment even when the venv is deactivated.
Furthermore, when installing a package pip throws this error:
The directory '/home/user/.cache/pip/http' or its parent directory is
not owned by the current user and the cache has been disabled. Please
check the permissions and owner of that directory. If executing pip
with sudo, you may want sudo's -H flag. The directory
'/home/user/.cache/pip' or its parent directory is not owned by the
current user and caching wheels has been disabled. check the
permissions and owner of that directory. If executing pip with sudo,
you may want sudo's -H flag.
I also get a permissions error when doing pip install <package_name>
I can get around this with pip install --user <package_name>
. And, sudo will only work as above with the -H
option.
Any insights or a possible fix on this error would be great! Thanks in advance!
Ed