numpy
scipy
matplotlib
在cmd中直接输入pip install numpy即可安装numpy库
简单代码测试安装的库
# _*_ coding:utf-8 _*_
import numpy as np
from numpy import *
import matplotlib.pyplot as plt
dataSet = [[-0.017,14.053],[-1.39,4.66],[-0.75,6.53]]
dataMat = mat(dataSet).T
plt.scatter(dataMat[0].tolist(),dataMat[1].tolist())
X = np.linspace(-2,2,100)
Y = 2.8*X 9
plt.plot(X,Y)
plt.show()
运行结果如图则表示库安装成功。