Finding versions of Python that are available for "pyenv install"

Wayne Conrad picture Wayne Conrad · Sep 27, 2019 · Viewed 7.9k times · Source

I want to know what Python versions I could install using the pyenv install command. pyenv versions lists only installed versions and does not appear to have an option to list available versions.

How can I find out what versions of Python I can install with pyenv install?

Answer

Wayne Conrad picture Wayne Conrad · Sep 27, 2019

pyenv accepts a switch to the install command to list available versions: --list, or -l for short:

$ pyenv install -l
Available versions:
  2.1.3
  2.2.3
  2.3.7
  2.4.0
  2.4.1
  2.4.2
...