pyenv-install - Install a Python version using python-build
Contents
Description
The pyenvinstall command allows you to install Python versions using python-build, a tool for compiling
and installing Python versions from source.
Examples
To install a specific version of Python, such as Python 3.9.6:
$pyenvinstall3.9.6
To list all available Python versions:
$pyenvinstall--list
To force the installation of a version even if it is already installed:
$pyenvinstall-f3.8.10
To install Python 3.7.9 and keep the source tree after installation:
$pyenvinstall-k3.7.9Name
pyenv-install - Install a Python version using python-build
Options
-l, --list
List all available versions that can be installed.
-f, --force
Install the version even if it is already installed.
-s, --skip-existing
Skip the installation if the version is already installed.
-k, --keep
Keep the source tree in the build root directory after installation.
-p, --patch
Apply a patch from standard input before building.
-v, --verbose
Enable verbose mode, printing detailed information during installation.
--version
Show the version of the python-build tool.
-g, --debug
Enable debug mode for detailed logging of the installation process.
See Also
pyenv(1), python-build(1)
Synopsis
pyenvinstall [options] <version>...
pyenvinstall [options] <definition-file>
pyenvinstall-l | --listpyenvinstall--version