Install Error when running "sudo pip install -e bench-repo" command

Am getting this error when following the steps as from: GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps
I am using ubuntu 16.04.3 server

$ sudo pip install -e bench-repo

The directory ‘/home/benn/.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/benn/.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.

Welcome ben,

Maybe delete the cache ‘sudo rm ~/.cache/pip’ and rerun the install?

In my local, user ‘frappe’ has this for permissions -

Frappe@erpnext:~/frappe-bench$ ls -al ~/.cache/
total 16
drwx------  4 frappe frappe 4096 Jan  6  2017 .
drwxr-xr-x 14 frappe frappe 4096 Oct 22 12:35 ..
-rw-r--r--  1 frappe frappe    0 Nov 28  2015 motd.legal-displayed
drwx------  4 frappe frappe 4096 Apr 29 17:59 pip
drwx------  2 frappe frappe 4096 Jan  6  2017 upstart
frappe@erpnext:~/frappe-bench$ ls -al ~/.cache/pip/
total 20
drwx------  4 frappe frappe 4096 Apr 29 17:59 .
drwx------  4 frappe frappe 4096 Jan  6  2017 ..
drwx------ 18 frappe frappe 4096 Oct 12  2016 http
-rw-rw-r--  1 frappe frappe   69 Apr 29 17:59 selfcheck.json
drwxrwxr-x 41 frappe frappe 4096 Oct 13 20:13 wheels

Another suggestion is to create an user account ‘frappe’ to dedicate to erpnext?

Normally you would create a server user called “frappe” which has sudo. You then install/update all frappe/ERPNext features from within that account. Looks like you are logged in as benn

Thanks Guys i nailed it.I created a system user frappe and gave him rights.