From 6139b51af43eaa2d3c6ad2c8d522dae4e17974eb Mon Sep 17 00:00:00 2001 From: sandipanpanda <87253083+sandipanpanda@users.noreply.github.com> Date: Sat, 2 Oct 2021 22:24:12 +0530 Subject: [PATCH] Add documentaion for prefix command (#2087) --- COMMANDS.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/COMMANDS.md b/COMMANDS.md index 6da9c0e4..d138e6d2 100644 --- a/COMMANDS.md +++ b/COMMANDS.md @@ -16,6 +16,7 @@ The most common subcommands are: * [`pyenv versions`](#pyenv-versions) * [`pyenv which`](#pyenv-which) * [`pyenv whence`](#pyenv-whence) +* [`pyenv prefix`](#pyenv-prefix) ## `pyenv commands` @@ -278,3 +279,12 @@ Lists all Python versions with the given command installed. 2.6.8 2.7.6 3.3.3 + +## `pyenv prefix` + +Displays the directory where a Python version is installed. If no +version is given, `pyenv prefix` displays the location of the +currently selected version. + + $ pyenv prefix 3.9.7 + /home/user/.pyenv/versions/3.9.7