Hey,
So the first question is, do you really need the machine executor? This is simpler with Docker.
If you do need the machine executor, pyenv is already installed and Python v3.7.0 is pre-installed. You can try this:
version: 2
jobs:
build:
machine: true
working_directory: ~/repo
steps:
- checkout
- run:
name: "Set Python Version"
command: pyenv global 3.7.0
- run:
name: "Do things!"
command: python run.py