Home > Backend Development > Python Tutorial > How to check the pip path of Python3?

How to check the pip path of Python3?

Guanhui
Release: 2020-06-24 13:46:54
forward
6202 people have browsed it

How to check the pip path of Python3?

In versions of python3.4 and above, pip comes with it by default.

How to check pip

After downloading and installing python, enter the command line and enter pip -V to check the python version number

C:\Users\Administrator>pip -V
Copy after login

Output results

pip 19.2.2 from c:\anaconda\lib\site-packages\pip (python 3.7)
Copy after login

Manual installation of pip

You can use the following method to install:

$ 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 it The following command:

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

Knowledge point expansion:

View the software packages installed using pip

Default Python3

pip list

Python2 Check the name and version of the software package installed by pip

python2 -m pip list

Python3 Check the software installed by pip Package and version

python3 -m pip list

You can also use the command

pip freeze

Recommended tutorial: "Python Tutorial"

The above is the detailed content of How to check the pip path of Python3?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:jb51.net
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