Add eval "$(pyenv init -)" (note the quotes) to your script to add Pyenv shims directory to PATH.
You likely want to add /Users/travis/.pyenv/versions to cache and do pyenv install -s to avoid building Python from source anew every time.
Add eval "$(pyenv init -)" (note the quotes) to your script to add Pyenv shims directory to PATH.
You likely want to add /Users/travis/.pyenv/versions to cache and do pyenv install -s to avoid building Python from source anew every time.