1.安装numpy库

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

在python中安装python库

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

在python中安装python库

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

在python中安装python库

完成安装。

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 库名,如果没报错,就证明安装成功。

在python中安装python库

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-02
  • 2021-04-14
  • 2022-01-09
  • 2021-06-02
  • 2021-04-29
  • 2021-07-03
猜你喜欢
  • 2021-11-16
  • 2021-11-25
  • 2021-09-26
  • 2021-08-17
  • 2021-08-20
  • 2021-12-07
  • 2021-04-06
相关资源
相似解决方案