无法将 scipy 安装到 Raspberry pi 4 (raspbian)

isi*_*z42 5 scipy python-3.x raspberry-pi raspbian

我正在尝试安装该scipy库,python3 -m pip install --user --no-use-pep517 scipy但收到以下错误:

ERROR: Failed building wheel for scipy
  Running setup.py clean for scipy
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-spokr6ic/scipy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-spokr6ic/scipy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' clean --all
       cwd: /tmp/pip-install-spokr6ic/scipy
Run Code Online (Sandbox Code Playgroud)

我正在使用该代码进行安装,因为pip3 install scipy它给了我这个错误:

  ERROR: Failed building wheel for scipy
Failed to build scipy
ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly
Run Code Online (Sandbox Code Playgroud)

我该如何解决这个问题?

Python==3.7.3

PS:完整的回溯是 414 行。我不知道是否应该包括在这里。

Meh*_*edB 5

尝试这个:

sudo apt update
sudo apt install -y python3-scipy
Run Code Online (Sandbox Code Playgroud)