TCC Keyterms
TCC Keyterms
pip is the preferred installer program. Starting with Python 3.4, it is included by
default with the Python binary installers.
venv is the standard tool for creating virtual environments, and has been part of
Python since Python 3.3. Starting with Python 3.4, it defaults to installing pip
into all created virtual environments.
The Python Packaging Index is a public repository of open source licensed packages
made available for use by other Python users.
the Python Packaging Authority is the group of developers and documentation authors
responsible for the maintenance and evolution of the standard packaging tools and
the associated metadata and file format standards. They maintain a variety of
tools, documentation, and issue trackers on both GitHub and Bitbucket.
distutils is the original build and distribution system first added to the Python
standard library in 1998. While direct use of distutils is being phased out, it
still laid the foundation for the current packaging and distribution
infrastructure, and it not only remains part of the standard library, but its name
lives on in other ways (such as the name of the mailing list used to coordinate
Python packaging standards development).
Deprecated since version 3.6: pyvenv was the recommended tool for creating virtual
environments for Python 3.3 and 3.4, and is deprecated in Python 3.6.
Changed in version 3.5: The use of venv is now recommended for creating virtual
environments.
See also Python Packaging User Guide: Creating and using virtual environments
Basic usage
The standard packaging tools are all designed to be used from the command line.
The following command will install the latest version of a module and its
dependencies from the Python Packaging Index:
It’s also possible to specify an exact or minimum version directly on the command
line. When using comparator operators such as >, < or some other special character
which get interpreted by shell, the package name and the version should be enclosed
within double quotes:
See also Python Packaging User Guide: Installing Python Distribution Packages
How do I …?
These are quick answers or links for some common tasks.
See also Python Packaging User Guide: Requirements for Installing Packages
… install packages just for the current user?
Passing the --user option to python -m pip install will install a package just for
the current user, rather than for all users of the system.
With the introduction of support for the binary wheel format, and the ability to
publish wheels for at least Windows and Mac OS X through the Python Packaging
Index, this problem is expected to diminish over time, as users are more regularly
able to install pre-built extensions rather than needing to build them themselves.
Some of the solutions for installing scientific software that are not yet available
as pre-built wheel files may also help with obtaining other binary extensions
without needing to build them locally.