# 方法一:直接在cmd中 输入pip show 包名 C:\Users\wangj\Desktop>pip show numpy Name: numpy Version: 1.15.1 Summary: NumPy: array processing for numbers, strings, records, and objects. Home-page: http://www.numpy.org Author: Travis E. Oliphant et al. Author-email: None License: BSD Location: c:\users\wangj\anaconda3\lib\site-packages Requires: Required-by: tables, seaborn, scikit-learn, PyWavelets, pytest-doctestplus, pytest-arraydiff, patsy, pandas, odo, numexpr, numba, mkl-random, mkl-fft, matplotlib, h5py, datashape, Bottleneck, bokeh, bkcharts, astropy
# 方法二:通过import后查看包的内置属性 包.__file__ C:\Users\wangj\Desktop>ipython In [1]: import numpy In [2]: numpy.__doc__ Out[2]: '\nNumPy\n=====\n\nProvides\n 1. An array object of arbitrary homogeneous items\n 2. Fast mathematical operations over arrays\n 3. Linear Algebra, Fourier Transforms, Random Number Generation\n\nHow to use the documentation\n---------------..............
In [3]: numpy.__file__ Out[3]: 'C:\\Users\\wangj\\Anaconda3\\lib\\site-packages\\numpy\\__init__.py'