| 1 |
.TH PYENV-INSTALL 1 "February 2025" "pyenv-install manual" "User Commands" |
| 2 |
.SH NAME |
| 3 |
\fBpyenv-install\fR \- Install a Python version using python-build |
| 4 |
|
| 5 |
.SH SYNOPSIS |
| 6 |
\fBpyenv install\fR [\fBoptions\fR] <\fBversion\fR>... |
| 7 |
|
| 8 |
\fBpyenv install\fR [\fBoptions\fR] <\fBdefinition-file\fR> |
| 9 |
|
| 10 |
\fBpyenv install\fR \fB-l\fR | \fB--list\fR |
| 11 |
|
| 12 |
\fBpyenv install\fR \fB--version\fR |
| 13 |
|
| 14 |
.SH DESCRIPTION |
| 15 |
The \fBpyenv install\fR command allows you to install Python versions using |
| 16 |
\fBpython-build\fR, a tool for compiling and installing Python versions from source. |
| 17 |
|
| 18 |
.SH OPTIONS |
| 19 |
.TP |
| 20 |
\fB-l\fR, \fB--list\fR |
| 21 |
List all available versions that can be installed. |
| 22 |
.TP |
| 23 |
\fB-f\fR, \fB--force\fR |
| 24 |
Install the version even if it is already installed. |
| 25 |
.TP |
| 26 |
\fB-s\fR, \fB--skip-existing\fR |
| 27 |
Skip the installation if the version is already installed. |
| 28 |
.TP |
| 29 |
\fB-k\fR, \fB--keep\fR |
| 30 |
Keep the source tree in the build root directory after installation. |
| 31 |
.TP |
| 32 |
\fB-p\fR, \fB--patch\fR |
| 33 |
Apply a patch from standard input before building. |
| 34 |
.TP |
| 35 |
\fB-v\fR, \fB--verbose\fR |
| 36 |
Enable verbose mode, printing detailed information during installation. |
| 37 |
.TP |
| 38 |
\fB--version\fR |
| 39 |
Show the version of the python-build tool. |
| 40 |
.TP |
| 41 |
\fB-g\fR, \fB--debug\fR |
| 42 |
Enable debug mode for detailed logging of the installation process. |
| 43 |
|
| 44 |
.SH EXAMPLES |
| 45 |
To install a specific version of Python, such as Python 3.9.6: |
| 46 |
|
| 47 |
.EX |
| 48 |
\fB$ pyenv install 3.9.6\fR |
| 49 |
.EE |
| 50 |
|
| 51 |
To list all available Python versions: |
| 52 |
|
| 53 |
.EX |
| 54 |
\fB$ pyenv install --list\fR |
| 55 |
.EE |
| 56 |
|
| 57 |
To force the installation of a version even if it is already installed: |
| 58 |
|
| 59 |
.EX |
| 60 |
\fB$ pyenv install -f 3.8.10\fR |
| 61 |
.EE |
| 62 |
|
| 63 |
To install Python 3.7.9 and keep the source tree after installation: |
| 64 |
|
| 65 |
.EX |
| 66 |
\fB$ pyenv install -k 3.7.9\fR |
| 67 |
.EE |
| 68 |
|
| 69 |
.SH SEE ALSO |
| 70 |
.MR pyenv 1 , |
| 71 |
.MR python-build 1 |
| 72 |
|
| 73 |
.SH AUTHORS |
| 74 |
Written by Yamashita, Yuu <[email protected]>, Sam Stephenson <[email protected]>. |
| 75 |
.PP |
| 76 |
This manual page was written by Josenison F. da Silva <[email protected]> |
| 77 |
for the Debian project (but may be used by others). |