Use the -default-timeout=100 parameter during installation. E.g:
pip install --default-timeout=100 numpy