python及pip路径查询

1、python安装路径查询: where python

C:\Windows\system32>where python
D:\ProgramFiles\Python\python.exe

2、查看pip安装了哪些软件包:pip list

C:\Windows\system32>pip list
Package         Version
--------------- --------
-ip             20.0.2
cycler          0.10.0
kiwisolver      1.1.0
matplotlib      3.1.1
numpy           1.17.4
opencv-python   4.2.0.34
pip             20.1.1
pyparsing       2.4.5
python-dateutil 2.8.1
setuptools      39.0.1
six             1.13.0

3、pip版本查询:pip -V

C:\Windows\system32>pip -V
pip 20.1.1 from d:\programfiles\python\lib\site-packages\pip (python 3.7)

4、查看pip安装包详细信息:pip show 安装包名字

C:\Windows\system32>pip show numpy
Name: numpy
Version: 1.17.4
Summary: NumPy is the fundamental package for array computing with Python.
Home-page: https://www.numpy.org
Author: Travis E. Oliphant et al.
Author-email: None
License: BSD
Location: d:\programfiles\python\lib\site-packages
Requires:
Required-by: opencv-python, matplotlib

C:\Windows\system32>pip show opencv-python
Name: opencv-python
Version: 4.2.0.34
Summary: Wrapper package for OpenCV python bindings.
Home-page: https://github.com/skvark/opencv-python
Author: None
Author-email: None
License: MIT
Location: d:\programfiles\python\lib\site-packages
Requires: numpy
Required-by:

 

你可能感兴趣的:(python)