0

The image is a screenshot of the error which i am getting while this command in ubuntu-

$ sudo pip install virtualenv

The directory '/home/asha/.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/asha/.cache/pip/http' or its parent directory is not owned by the current user and caching wheels has been disabled. check permission and owner of that directory. if executing pip with sudo, you may want sudo's -H flag. 
Requirement already satisfied: virtualenv in ./.local/lib/python2.7/site-packages""

screenshot

1 Answers1

0

I have no score to write a comment. So answer here.

Usually instaling by sudo xxx yyyyy do not bring enough permissions to change directories an files.

A good work around is to open a terminal, log as root and install:

$ sudo -i
password for rootname:
$ pip install virtualenv

Now, the instaler has full rights

quevedo
  • 101