1.安装numpy库
win+R -> cmd ->where python(有种情况是输入where python之后,出现“ 'where不是内部或外部命令,也不是可运行的程序或批处理文件 ”,原因不明),找到安装目录后,找到Scripts文件夹所在位置,如C:\Program Files (x86)\Python37-32\Scripts,到https://pypi.org/project/numpy/#files下载对应文件,

看清楚自己是32位还是64位,将文件下载到Scripts下面,

在cmd命令行中输入pip3.6 install C:\Program Files (x86)\Python37-32\Scripts\numpy-1.15.4-cp36-none-win_amd64.whl,

完成安装。
2.安装scipy库
https://pypi.org/project/scipy/#files
3.安装matplotlib库
https://pypi.org/project/matplotlib/#files
4.安装pandas库
https://pypi.org/project/pandas/#files
可以cd进入Scripts文件夹,再输入pip install安装库;
如果要卸载numpy库,pip uninstall numpy卸载。
如何验证安装是否成功?
进入IDLE python中,输入import 库名,如果没报错,就证明安装成功。

|