pip install -r requirements.txt
fails with the exception below OSError: [Errno 13] Permission denied: \'/usr/local/lib/...
. What\'s wrong and how d
It is due permission problem,
sudo chown -R $USER /path to your python installed directory
/usr/local/lib/python2.7/
or try,
pip install --user -r package_name
and then say, pip install -r requirements.txt
this will install inside your env
dont say, sudo pip install -r requirements.txt
this is will install into arbitrary python path.