On 03Jul2017 09:13, Alan Gauld <alan.ga...@yahoo.co.uk> wrote:
[...]
Sorry,
I still have no idea what you are trying to do and what you want help with?
-------- Forwarded Message --------
Alan,
my bad, here is the error message.
*The directory '/home/mariejosv/.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.

I would guess that the poster has done some pip installs as root, but with $HOME still as their personal home directory, and is now doing some pip install stuff as themselves.

My advice would be to simply remove the .cache/pip directory.

Then in future, do your pip work from a proper login shell as whichever user. So either as yourself, or if you become root, do an "su -" to get a root login shell before proceeding.

Personally my practice is to mostly use pip only with virtualenvs, as myself.

Using pip as root tends to conflict with Python packages supplied by the OS vendor/supplier; better to stay out of the way of that and work as oneself on data the OS vendor doesn't want to own.

Cheers,
Cameron Simpson <c...@zip.com.au>
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to