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)).
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!