无法将 scipy 安装到 Raspberry pi 4 (raspbian) [英] Can't install scipy to Raspberry pi 4 (raspbian)
本文介绍了无法将 scipy 安装到 Raspberry pi 4 (raspbian)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用 python3 -m pip install --user --no-use-pep517 scipy
安装 scipy
库,但我收到以下错误:
I am trying to install the scipy
library with python3 -m pip install --user --no-use-pep517 scipy
but I am receiving the following error:
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
我正在使用该代码进行安装,因为 pip3 install scipy
给了我这个错误:
I am using that code to install because pip3 install scipy
is giving me this error:
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
我该如何解决这个问题?
How can I resolve this issue?
Python == 3.7.3
Python == 3.7.3
PS:完整的回溯是 414 行.我不知道我是否应该包括在这里.
PS:The complete traceback is 414 lines. I don't know if I should include here.
推荐答案
试试这个:
sudo apt update
sudo apt install -y python3-scipy
这篇关于无法将 scipy 安装到 Raspberry pi 4 (raspbian)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文