扫描二维码下载沐宇APP

沐宇

微信扫码使用沐宇小程序

沐宇

怎么在python中安装numpy库

扬州沐宇科技
2021-04-21 18:24:41
numpy, python

在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库



扫码添加客服微信