一只Python小white的日常提问(づ ●─● )づ

img


大老们请问一下这是咋回事

输出是:Exited with error status 1
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/numpy/core/init.py", line 22, in
from . import multiarray
File "/usr/local/lib/python3.9/site-packages/numpy/core/multiarray.py", line 12, in
from . import overrides
File "/usr/local/lib/python3.9/site-packages/numpy/core/overrides.py", line 7, in
from numpy.core._multiarray_umath import (
ImportError: libgfortran-2e0d59d6.so.5.0.0: failed to map segment from shared object: Cannot allocate memory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/data/f357e2516c0801c5e1afbc70db733b74", line 2, in
import numpy
File "/usr/local/lib/python3.9/site-packages/numpy/init.py", line 145, in
from . import core
File "/usr/local/lib/python3.9/site-packages/numpy/core/init.py", line 48, in
raise ImportError(msg)
ImportError:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.

We have compiled some common reasons and troubleshooting tips at:

https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

  • The Python version is: Python3.9 from "/usr/local/bin/python3.9"
  • The NumPy version is: "1.20.2"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: libgfortran-2e0d59d6.so.5.0.0: failed to map segment from shared object: Cannot allocate memory