在AWS SageMaker Studio中运行以下代码安装numpy模块:
!pip install numpy
如果安装成功,将输出类似以下内容:
Collecting numpy
Downloading numpy-1.20.3-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.4 MB)
|████████████████████████████████| 15.4 MB 5.2 MB/s
Installing collected packages: numpy
Successfully installed numpy-1.20.3
此时再次运行numpy相关的代码,应该就不会出现“ModuleNotFoundError”错误了。