pip (Python)

pip is Python's package installer, the command-line tool used to download and install third-party libraries from the Python Package Index (PyPI). You run it from your terminal, not inside Python code.

Python

Typical usage is `pip install <package>`. Combined with a requirements.txt file, pip makes it easy to reproduce a project's dependencies on any machine.

Syntax

pip install package_name

Examples

Python

pip install requests

Output:

Successfully installed requests

Learn it in a lesson

See also

Back to the Dictionary