.TH PYTHON-BUILD 1 "February 2025" "python-build manual" "User Commands" .SH NAME \fBpython-build\fR \- Build and install a Python version using pyenv .SH SYNOPSIS \fBpython-build\fR [\fBoptions\fR] <\fBdefinition\fR> <\fBprefix\fR> .SH DESCRIPTION The \fBpython-build\fR command builds and installs a specified version of Python using the \fBpyenv\fR tool. It provides a flexible and easy way to install different Python versions in the specified \fBprefix\fR directory. .SH OPTIONS .TP \fB-k\fR, \fB--keep\fR Do not remove source tree after installation. .TP \fB-p\fR, \fB--patch\fR Apply a patch from stdin before building. .TP \fB-v\fR, \fB--verbose\fR Verbose mode: print compilation status to stdout. .TP \fB-4\fR, \fB--ipv4\fR Resolve names to IPv4 addresses only. .TP \fB-6\fR, \fB--ipv6\fR Resolve names to IPv6 addresses only. .TP \fB--definitions\fR List all built-in definitions. .TP \fB--version\fR Show version of python-build. .TP \fB-g\fR, \fB--debug\fR Build a debug version. .SH EXAMPLES To install a specific version of Python: .EX \fB$ python-build 3.8.5 /usr/local\fR .EE To install a Python version with verbose output: .EX \fB$ python-build --verbose 3.9.0 /usr/local\fR .EE To force the installation of a Python version: .EX \fB$ python-build --force 3.7.9 /usr/local\fR .EE .SH SEE ALSO .MR pyenv 1 , .MR pyenv-install 1 .SH AUTHORS Written by Yamashita, Yuu , Sam Stephenson . This manual page was written by Josenison F. da Silva for the Debian project (but may be used by others).