How to use latest python version instead of specific version

Currently, I have to specify multiple specific python version to trigger tox:

-machine:		
 -  post:		
 -    - pyenv global 2.7.12 3.4.4 3.5.2 3.6.0		
 -

however, I want to test the latest 2.7.x 3.4.x3.5.x 3.6.x installed on the build image.
when i removed above description, error thrown:
https://circleci.com/gh/peter-wangxu/persist-queue/75?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link

ERROR: InvocationError: Failed to get version_info for python3.4: pyenv: python3.4: command not found

The `python3.4' command exists in these Python versions:
  3.4.3
  3.4.4


py35 create: /home/ubuntu/persist-queue/.tox/py35
ERROR: InvocationError: Failed to get version_info for python3.5: pyenv: python3.5: command not found

The `python3.5' command exists in these Python versions:
  3.5.1
  3.5.2


py36 create: /home/ubuntu/persist-queue/.tox/py36
ERROR: InvocationError: Failed to get version_info for python3.6: pyenv: python3.6: command not found

The `python3.6' command exists in these Python versions:
  3.6.0

Hello @peter-wangxu,

Thank you for your question.

As you’ve discovered, in order to use tox in this way you will need to install the versions listed in your tox.ini first, such as:

$ pyenv global 2.7.12 3.4.4 3.5.2 3.6.0

I’m not sure if pyenv will allow to install the version without a patch-level, such as pyenv 3.6.

Could you try it?

Looks like not working:

pyenv install 3.6

python-build: definition not found: 3.6

The following versions contain `3.6’ in the name:
3.3.6
3.6.0
3.6-dev

See all available versions with `pyenv install --list’.

If the version you need is missing, try upgrading pyenv:

cd /home/wangp11/.pyenv/plugins/python-build/…/… && git pull && cd -

Hello again Peter,

I would suggest to check the issue tracker or open a ticket with the pyenv project.

It doesn’t look like they support this syntax.

Please let us know if you have any more questions.

Best, Zak

pyenv global 3.5.2 works but nothing later. Python 3.6.4 is the current Python. It should not be the user’s job to open ticket to have the current Python. That should be handled by the system.