Add travis_retry to sudo apt-get install and pip install in .travis.yml
Merge pull request #2832 from sbesson/rebased/develop/travis_retry

Add travis_retry to sudo apt-get install and pip install in .travis.yml (rebased onto develop)