Home > Backend Development > Python Tutorial > Does python3 come with pip?

Does python3 come with pip?

青灯夜游
Release: 2019-06-14 17:44:57
Original
3760 people have browsed it

pip is a Python package management tool that provides the functions of finding, downloading, installing, and uninstalling Python packages. So does python3 come with pip?

Does python3 come with pip?

Currently, if you download the latest version of the installation package from the Python official website, it already comes with this tool.

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

How to determine whether pip is installed?

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

pip --version
Copy after login

How to install pip?

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

$ 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 If it is Python3, execute the following command:

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

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

Some Linux distributions can directly use the package manager to install pip, such as Debian and Ubuntu:

sudo apt-get install python-pip
Copy after login

The above is the detailed content of Does python3 come with 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