HOME=`pwd`/home mkdir $HOME export PIP_DOWNLOAD_CACHE=$HOME/../../../pip_cache cat ../../openmedialibrary/requirements.txt | grep -v lxml > requirements.txt pip install -r requirements.txt -I --user mkdir old mv lib bin old mv home/.local/lib lib mv home/.local/bin bin rm -r home old requirements.txt #sed -i "s#bin/python#bin/env python#" bin/gunicorn