Either try this in `.travis.yml` ```yaml python: 3.7 dist: xenial sudo: true ``` or switch to using pyenv on both linux and macOS