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

What is the principle of python pip?

(*-*)浩
Release: 2019-05-28 16:36:38
Original
5677 people have browsed it

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>
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template