Home >Backend Development >Python Tutorial >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
Output results
pip 19.2.2 from c:\anaconda\lib\site-packages\pip (python 3.7)
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 # 运行安装脚本
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 # 运行安装脚本。
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!