ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/virtualenv.pyc'
Consider using the --user option or check the permissions.
            Asked
            
        
        
            Active
            
        
            Viewed 166 times
        
    -5
            
            
        - 
                    4your user doesn't have permission to write to the directory, you can use sudo for installing packages using root user. what is the output when you run `whoami` command on terminal? – Rajan Sharma Jul 18 '19 at 11:40
- 
                    `pip install --user Django` – Rahul Jul 18 '19 at 11:44
- 
                    1@RajanSharma We should stop advising people to do `sudo pip install` as that will install _project_ dependencies to _system_ site-packages. Using `--user` or a virtualenv is the recommended solution. – Gino Mempin Nov 27 '19 at 04:33
- 
                    @GinoMempin I Agree! – Rajan Sharma Dec 13 '19 at 09:04
 
     
     
    