From e03118235a13f3caab9ec99b92325adee7d0fdb5 Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Sun, 30 Oct 2022 21:38:06 +0300 Subject: [PATCH] Improve prefix resolution documentation --- COMMANDS.md | 8 +++++++- README.md | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/COMMANDS.md b/COMMANDS.md index e57010c3..5d52e13f 100644 --- a/COMMANDS.md +++ b/COMMANDS.md @@ -229,7 +229,13 @@ Then install the desired versions: 2.6.8 * 2.7.6 (set by /home/yyuu/.pyenv/version) -To install the latest version of Python without giving a specific version use the `:latest` syntax. For example, to install the latest patch version for Python 3.8 you could do: +You can also install the latest version of Python in a specific version line by supplying a prefix instead of a complete name: + + $ pyenv install 3.10 + +See the [`pyenv latest` documentation](#pyenv-latest) for details on prefix resolution. + +An older option is to use the `:latest` syntax. For example, to install the latest patch version for Python 3.8 you could do: pyenv install 3.8:latest diff --git a/README.md b/README.md index 8de27b0e..80d7cbf4 100644 --- a/README.md +++ b/README.md @@ -418,6 +418,8 @@ while switching -- the latest installed version. You can run [`pyenv latest `](COMMANDS.md#pyenv-latest) to see what a specific prefix would be resolved to. +See the [`pyenv latest` documentation](COMMANDS.md#pyenv-latest) for details on the resolution process. + #### Python versions with extended support