pip is a package management system that is used to install and manage software packages written in Python . Many packages can be found in the Python Package Index (PyPI). [four]
| pip | |
|---|---|
pip --help | |
| Type of | |
| Written on | Python |
| operating system | OS independent |
| First edition | 2011-4-4 [1] |
| Hardware platform | Python |
| Latest version | 19.1.1 [2] ( 2019-05-06 ) |
| Readable File Formats | |
| License | Free software [3] |
| Site | pip.pypa.io |
Starting with Python 2.7.9 and Python 3.4, they contain the pip package (or pip3 for Python 3) by default. [five]
Content
Command Line Interface
pip install virtualenvMost Python distributions already contain pip . If pip is missing, then it can be installed using the package management system or via cURL , a utility for downloading via the Internet:
curl https://bootstrap.pypa.io/get-pip.py | python
One of the main advantages of pip is the simplicity of the command line interface , which allows you to install Python packages with a simple command
pip install some-package-name
It is just as easy to remove packages:
pip uninstall some-package-name
It is important that pip provides the ability to manage all packages and their versions using the requirements.txt file. This allows you to efficiently reproduce the entire necessary list of packages in a separate environment (for example, on another computer) or in a virtual environment . This is achieved using a properly compiled requirements.txt file and the following command:
pip install -r requirements.txt
Installing some packages for specific python versions, where ${version} is replaced with 2, 3, 3.6, and so on:
pip $ { version } install some-package-name
Using Web Hosting
Pip is used to support Python on cloud platforms such as Heroku [6] and PythonAnywhere .
See also
- Software repository
Notes
- ↑ 1.0 release commit
- ↑ Release Notes .
- ↑ LICENSE.txt . github.com/pypa/pip . Date of appeal July 25, 2015. (unavailable link)
- ↑ pip documentation . The pip developers. Date of treatment January 5, 2012.
- ↑ pip installation . Date of treatment February 24, 2015.
- ↑ Getting Started with Python on Heroku / Cedar . Dev Center Heroku Date of treatment January 5, 2012.
Links
- pip.pypa.io - official Pip website