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:

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章