python-build1
Build and install a python version using pyenv
Usage
python-build [options]
<definition>
<prefix>
Overview
The python-build command builds and installs a specified version of Python using the pyenv tool. It provides a flexible and easy way to install different Python versions in the specified prefix directory.
Options
-
-k, --keep -
Do not remove source tree after installation.
-
-p, --patch -
Apply a patch from stdin before building.
-
-v, --verbose -
Verbose mode: print compilation status to stdout.
-
-4, --ipv4 -
Resolve names to IPv4 addresses only.
-
-6, --ipv6 -
Resolve names to IPv6 addresses only.
-
--definitions -
List all built-in definitions.
-
--version -
Show version of python-build.
-
-g, --debug -
Build a debug version.
Examples
To install a specific version of Python:
$ python-build 3.8.5 /usr/local
To install a Python version with verbose output:
$ python-build --verbose 3.9.0 /usr/local
To force the installation of a Python version:
$ python-build --force 3.7.9 /usr/local