Failed to run python script directly: pyenv-version-name: command not found

We try to run python script directly, like:

$ gtest-parallel $TESTS

Or

$ python3 gtest-parallel $TESTS

The command failed with error:

/opt/circleci/.pyenv/libexec/pyenv-exec: line 24: pyenv-version-name: command not found

A workaround we’re using is specify the python path:

$ /usr/bin/python gtest-parallel $TESTS

Here is our configuration: