1. 程式人生 > 其它 >Python基本常用包整理(data analysis and machine learning),附查詢包版本語句

Python基本常用包整理(data analysis and machine learning),附查詢包版本語句

python 資料分析模組(Numpy、Scipy、Scikit和Pandas等)

python進行機器學習(tensorflow)

一、基礎包

①Numpy

Python科學計算的基礎包

②Pandas

提供了大量處理結構化資料的資料結構和函式,它是使Python成為強大的資料分析工具的最重要的工具

③Matplotlib

用於繪圖的Python庫

④SciPy

包含了一系列解決科學計算的標準包,例如數值積分、微分方程求解、矩陣分解等

⑤tensorflow

參見 :http://blog.csdn.net/wulex/article/details/66972720

二、安裝包

①安裝包(在下載Whl時注意版本)

1.在http://www.lfd.uci.edu/~gohlke/pythonlibs/ 中找到所需要的包,並下載

2. 在終端中安裝wheel

pip install wheel

然後cd 到包所在的路徑 然後使用如下命令:

②查詢某個包的基本屬性

>>> import numpy

>>> help(numpy) Help on package numpy: NAME     numpy DESCRIPTION     NumPy     =====     Provides       1. An array object of arbitrary homogeneous items       2. Fast mathematical operations over arrays       3. Linear Algebra, Fourier Transforms, Random Number Generation

...  

附:查詢包的版本方法:pip list   與pip freeze