.TH PYENV-INSTALL 1 "February 2025" "pyenv-install manual" "User Commands" .SH NAME \fBpyenv-install\fR \- Install a Python version using python-build .SH SYNOPSIS \fBpyenv install\fR [\fBoptions\fR] <\fBversion\fR>... \fBpyenv install\fR [\fBoptions\fR] <\fBdefinition-file\fR> \fBpyenv install\fR \fB-l\fR | \fB--list\fR \fBpyenv install\fR \fB--version\fR .SH DESCRIPTION The \fBpyenv install\fR command allows you to install Python versions using \fBpython-build\fR, a tool for compiling and installing Python versions from source. .SH OPTIONS .TP \fB-l\fR, \fB--list\fR List all available versions that can be installed. .TP \fB-f\fR, \fB--force\fR Install the version even if it is already installed. .TP \fB-s\fR, \fB--skip-existing\fR Skip the installation if the version is already installed. .TP \fB-k\fR, \fB--keep\fR Keep the source tree in the build root directory after installation. .TP \fB-p\fR, \fB--patch\fR Apply a patch from standard input before building. .TP \fB-v\fR, \fB--verbose\fR Enable verbose mode, printing detailed information during installation. .TP \fB--version\fR Show the version of the python-build tool. .TP \fB-g\fR, \fB--debug\fR Enable debug mode for detailed logging of the installation process. .SH EXAMPLES To install a specific version of Python, such as Python 3.9.6: .EX \fB$ pyenv install 3.9.6\fR .EE To list all available Python versions: .EX \fB$ pyenv install --list\fR .EE To force the installation of a version even if it is already installed: .EX \fB$ pyenv install -f 3.8.10\fR .EE To install Python 3.7.9 and keep the source tree after installation: .EX \fB$ pyenv install -k 3.7.9\fR .EE .SH SEE ALSO .MR pyenv 1 , .MR python-build 1 .SH AUTHORS Written by Yamashita, Yuu , Sam Stephenson . .PP This manual page was written by Josenison F. da Silva for the Debian project (but may be used by others).