TIP: When there is Internet latency and requires installing python packages by a requeriments file of pip but the installation failed, then you can prevent PIP from re-downloading previously downloaded packages, running this command:
mkdir -p ~/.cache/pip && mkdir ~/.pip && printf '[global]\ndownload_cache = ~/.cache/pip\n' >> ~/.pip/pip.conf