Home  >  Article  >  Backend Development  >  What is the principle of python pip?

What is the principle of python pip?

(*-*)浩
(*-*)浩Original
2019-05-28 16:35:345550browse

Principle

The management website of python third-party library (commonly known as the source) is: https://pypi.python.org/pypi

When the user uses the command pip install pip, a package search request will be sent to the above website. If it cannot be found, it will retry a few times and then give up. If found, the code and dependencies corresponding to the relevant library will be downloaded. After the local compilation is completed, it will be installed into the local python installation directory (usually ($(python installation directory)\lib\site-packages)).

What is the principle of python pip?

Example of using pip to install third-party libraries

Installing numpy:

pip install numpy<br>

Pip common commands

Commands:
             

install  
Installation package.
           
uninstall
​ ​ ​
Uninstall the package.
           
freeze
​ ​ ​
Output the list of installed packages in a certain format
         
#list
​ ​ ​
List installed packages.
           
#show
           
Display package details.
       
#search
​ ​ ​
Search package, similar to search.
in yum          
#wheel
​ ​ ​
Made wheels according to your requirements.
zip
​ ​ ​ ​
Not recommended. Compress a single package.
unzip
​ ​ ​
Not recommended. Unzip each package.
bundle
           
Not recommended. Create pybundles
help  
​ ​ ​
Current help.
         

The above is the detailed content of What is the principle of python pip?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn