Home>Article>Backend Development> What are the pip tool commands of python?

What are the pip tool commands of python?

藏色散人
藏色散人 Original
2020-10-26 11:15:24 9388browse

Python’s pip tool commands are: 1. install command, used to install the library; 2. download command, used to download the library; 3. uninstall command, used to uninstall the library; 4. freeze command, used to Export the installation package in requirements format; 5. list command, etc.

What are the pip tool commands of python?

Recommended: "python video tutorial"

Common commands for Python pip tool

The pip tool is the main way to install python third-party libraries. To run the pip program under the cmd command line, the usage method is as follows:

pip  [options]

For example, pip install pygame means installing the pygame library. The common commands of

e2b9f03cad787b9644e1f51fd23b7dac are as follows:

install #安装库 download #下载库(一般不用,安装时会自动下载) uninstall #卸载库 freeze # 以requirements格式导出安装包(如pip freeze > requirements.txt,将库导出到txt文件,导出的具体位置在命令行运行下的文件夹中,下回可以通过pip install -r requirements.txt在新的机器上安装了,要注意文件存放的位置。) list #展示所有库及其版本 show #显示某个安装库的信息,如pip show pygame search #搜索名称或摘要包含关键词的库,如pip search pygame将搜索PyPI中名称或摘要包含pygame的所有库,并将其列出

The above is the detailed content of What are the pip tool commands of python?. 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