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
?
Once pyenv has determined which version of Python your application has specified, it passes the command along to the corresponding Python installation. Each Python version is installed into its own directory under $(pyenv root)/versions . For example, you might have these versions installed: $(pyenv root)/versions/2.7.
You can then use pyenv to switch to the specific python version you want to use (globally or locally). Pyenv does this by adding a shim to your $PATH which directs all python and python related tools like pip and easy_install to /. pyenv/shims/python, from here pyenv manages the various versions for us.
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With