100% noob here. Second day using Linux.
Using Ubuntu 16.04. When executing
sudo pip install numexpr
I got the message as follows:
The directory '/home/ark/.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/ark/.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.
Requirement already satisfied: numexpr in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied: numpy>=1.6 in /usr/lib/python2.7/dist-packages (from numexpr)
It appears to me though the package is not correctly installed.
/home/ark/.cache
and/home/ark/.cache.pip
it should belong to you.root
, as the$HOME
environment variable is set to/home/ark
instead of/root
using sudo.sudo su -; pip install numexpr
.