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

PythonPyenv

Python Problem Overview


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?

Python Solutions


Solution 1 - Python

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
...

Before running pyenv install -l, you may need to update pyenv as described here. Otherwise the list may not include the latest versions (thank you @csatt1).

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionWayne ConradView Question on Stackoverflow
Solution 1 - PythonWayne ConradView Answer on Stackoverflow