[{"@context":"http:\/\/schema.org\/","@type":"BlogPosting","@id":"https:\/\/wiki.edu.vn\/en\/wiki24\/pip-package-manager-wikipedia\/#BlogPosting","mainEntityOfPage":"https:\/\/wiki.edu.vn\/en\/wiki24\/pip-package-manager-wikipedia\/","headline":"pip (package manager) – Wikipedia","name":"pip (package manager) – Wikipedia","description":"before-content-x4 From Wikipedia, the free encyclopedia after-content-x4 Package management system for Python Pip is a package-management system written in Python","datePublished":"2018-09-21","dateModified":"2018-09-21","author":{"@type":"Person","@id":"https:\/\/wiki.edu.vn\/en\/wiki24\/author\/lordneo\/#Person","name":"lordneo","url":"https:\/\/wiki.edu.vn\/en\/wiki24\/author\/lordneo\/","image":{"@type":"ImageObject","@id":"https:\/\/secure.gravatar.com\/avatar\/c9645c498c9701c88b89b8537773dd7c?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c9645c498c9701c88b89b8537773dd7c?s=96&d=mm&r=g","height":96,"width":96}},"publisher":{"@type":"Organization","name":"Enzyklop\u00e4die","logo":{"@type":"ImageObject","@id":"https:\/\/wiki.edu.vn\/wiki4\/wp-content\/uploads\/2023\/08\/download.jpg","url":"https:\/\/wiki.edu.vn\/wiki4\/wp-content\/uploads\/2023\/08\/download.jpg","width":600,"height":60}},"image":{"@type":"ImageObject","@id":"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/7\/7f\/Pip_install_virtualenv.png\/300px-Pip_install_virtualenv.png","url":"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/7\/7f\/Pip_install_virtualenv.png\/300px-Pip_install_virtualenv.png","height":"65","width":"300"},"url":"https:\/\/wiki.edu.vn\/en\/wiki24\/pip-package-manager-wikipedia\/","about":["Wiki"],"wordCount":1384,"articleBody":" (adsbygoogle = window.adsbygoogle || []).push({});before-content-x4From Wikipedia, the free encyclopedia (adsbygoogle = window.adsbygoogle || []).push({});after-content-x4Package management system for PythonPip is a package-management system written in Python and is used to install and manage software packages.[4] The Python Software Foundation recommends using pip for installing Python applications and its dependencies during deployment.[5] Pip connects to an online repository of public packages, called the Python Package Index. Pip can be configured to connect to other package repositories (local or remote), provided that they comply to Python Enhancement Proposal 503.[6][7] (adsbygoogle = window.adsbygoogle || []).push({});after-content-x4Most distributions of Python come with pip preinstalled. Python 2.7.9 and later (on the python2 series), and Python 3.4 and later include pip by default.[8]Table of ContentsHistory[edit]Command-line interface[edit]Using setup.py[edit]Custom repository[edit]See also[edit]References[edit]External links[edit]History[edit]First introduced as pyinstall in 2008 by Ian Bicking (the creator of the virtualenv package) as an alternative to easy install,[9][10]pip was chosen as the new name from one of several suggestions that the creator received on his blog post.[11] According to Bicking himself, the name is a recursive acronym for “Pip Installs Packages”.[12] In 2011, the Python Packaging Authority (PyPA) was created to take over the maintenance of pip and virtualenv from Bicking, led by Carl Meyer, Brian Rosner, and Jannis Leidel.[10] (adsbygoogle = window.adsbygoogle || []).push({});after-content-x4With the release of pip version 6.0 (2014-12-22), the version naming process was changed to have version in X.Y format and drop the preceding 1 from the version label.[13]Command-line interface[edit] An output of pip install virtualenvPip’s command-line interface allows the install of Python software packages by issuing a command:pip install some-package-nameUsers can also remove the package by issuing a command:pip uninstall some-package-namePip has a feature to manage full lists of packages and corresponding version numbers, possible through a “requirements” file.[14] This permits the efficient re-creation of an entire group of packages in a separate environment (e.g. another computer) or virtual environment. This can be achieved with a properly formatted file and the following command,[15] where requirements.txt is the name of the file:pip install -r requirements.txtTo install some package for a specific python version, pip provides the following command, where ${version} is replaced by 2, 3, 3.4, etc.:pip${version} install some-package-nameUsing setup.py[edit]Pip provides a way to install user-defined projects locally with the use of setup.py file. This method requires the python project to have the following file structure:example_project\/\u251c\u2500\u2500 exampleproject\/ Python package with source code.| \u251c\u2500\u2500 __init__.py Make the folder a package.|\u00a0 \u2514\u2500\u2500 example.py Example module.\u2514\u2500\u2500 README.md README with info of the project.Within this structure, user can add setup.py to the root of the project (i.e. example_project for above structure) with the following content:from setuptools import setup, find_packagessetup( name='example', # Name of the package. This will be used, when the project is imported as a package. version='0.1.0', packages=find_packages(include=['exampleproject', 'exampleproject.*']) # Pip will automatically install the dependencies provided here.)After this, pip can install this custom project by running the following command, from the project root directory:Custom repository[edit]Besides the default PyPI repository, Pip supports custom repositories as well.[16] Such repositories can be located on an HTTP(s) URL or on a file system location.A custom repository can be specified using the -i or\u2014index-url option, like so:pip install -i https:\/\/your-custom-repo\/simple Or with a filesystem:pip install -i \/path\/to\/your\/custom-repo\/simple See also[edit]References[edit]External links[edit] (adsbygoogle = window.adsbygoogle || []).push({});after-content-x4"},{"@context":"http:\/\/schema.org\/","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"https:\/\/wiki.edu.vn\/en\/wiki24\/#breadcrumbitem","name":"Enzyklop\u00e4die"}},{"@type":"ListItem","position":2,"item":{"@id":"https:\/\/wiki.edu.vn\/en\/wiki24\/pip-package-manager-wikipedia\/#breadcrumbitem","name":"pip (package manager) – Wikipedia"}}]}]