温馨提示×

怎么在python中安装numpy库

养鱼的猫咪
11881
2021-04-21 18:24:41
栏目: 编程语言

在python中安装numpy库的方法:1.打开命令提示符窗口;2.使用pip命令安装numpy库;3.进入python解释器;4.使用import命令引入numpy库;

怎么在python中安装numpy库

具体步骤如下:

1.首先,使用组件键“win+R”运行cmd,打开命令提示符窗口;

怎么在python中安装numpy库

2.进入到命令提示符窗口后,在命令行中执行“pip install numpy”命令安装numpy库;

怎么在python中安装numpy库

3.numpy库安装好后,执行“python”命令,进入python解释器;

怎么在python中安装numpy库

4.最后,进入到python解释器后,在命令行中执行“import numpy as np”命令引入numpy库即可;

怎么在python中安装numpy库



0