Home Backend Development Python Tutorial Does python come with pip?

Does python come with pip?

Jun 11, 2019 pm 04:00 PM
pip

Does python come with pip?

pip is a Python package management tool that provides the functions of finding, downloading, installing, and uninstalling Python packages.

Currently, if you download the latest version of the installation package from python.org, it already comes with this tool.

Python 2.7.9 or Python 3.4 or above comes with the pip tool.

pip official website: https://pypi.org/project/pip/

You can use the following command to determine whether it has been installed:

1

pip --version

Copy after login
Copy after login

If you have not installed it yet, you can use the following method to install it:

1

2

$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py   # 下载安装脚本

$ sudo python get-pip.py    # 运行安装脚本

Copy after login

Note: Which version of Python is used to run the installation script, pip will be associated with that version. If it is Python3, execute the following command:

1

$ sudo python3 get-pip.py    # 运行安装脚本。

Copy after login

Generally, pip corresponds to Python 2.7, and pip3 corresponds to Python 3.x.

pip's most commonly used commands

Show version and path

1

pip --version

Copy after login
Copy after login

Get help

1

pip --help

Copy after login

Upgrade pip

1

pip install -U pip

Copy after login

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

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

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What is the difference between pip and pip3? Introduction and distinction What is the difference between pip and pip3? Introduction and distinction Jan 27, 2024 am 09:38 AM

What is the difference between pip and pip3? Introduction and distinction

Learn to completely uninstall pip and use Python more efficiently Learn to completely uninstall pip and use Python more efficiently Jan 16, 2024 am 09:01 AM

Learn to completely uninstall pip and use Python more efficiently

Find the storage location of installed pip packages Find the storage location of installed pip packages Jan 18, 2024 am 10:12 AM

Find the storage location of installed pip packages

Simple guide to pip mirror source: easily master how to use it Simple guide to pip mirror source: easily master how to use it Jan 16, 2024 am 10:18 AM

Simple guide to pip mirror source: easily master how to use it

A must-read for Python beginners: a concise and easy-to-understand pip installation guide A must-read for Python beginners: a concise and easy-to-understand pip installation guide Jan 16, 2024 am 10:34 AM

A must-read for Python beginners: a concise and easy-to-understand pip installation guide

Analyze compatibility issues between pip and pip3 versions Analyze compatibility issues between pip and pip3 versions Jan 27, 2024 am 09:37 AM

Analyze compatibility issues between pip and pip3 versions

Use Tsinghua Source to accelerate Python package downloads, Pip settings for Windows operating systems Use Tsinghua Source to accelerate Python package downloads, Pip settings for Windows operating systems Jan 17, 2024 am 10:47 AM

Use Tsinghua Source to accelerate Python package downloads, Pip settings for Windows operating systems

Quickly install OpenCV study guide using pip package manager Quickly install OpenCV study guide using pip package manager Jan 18, 2024 am 09:55 AM

Quickly install OpenCV study guide using pip package manager

See all articles