Appendix 2pip
pip is the tool used to install Python packages, and it is installed as part of your Python installation. pip supposedly is a recursive acronym that stands for Pip Installs Python or Pip Installs Packages. If you have more than one version of Python installed on your system, each version has its own pip package manager.
By default, when you run pip install something, pip will:
-
Connect to the PyPI repository at https://pypi.org/pypi.
-
Look for a package called something.
-
Download the appropriate version of something for your version of Python and your system.
-
Install something into the site-packages directory of your Python installation that was used to call pip.
This is a gross understatement of what pip does—it also does cool ...
Get Python Testing with pytest now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.