isimsiz42
isimsiz42

Reputation: 53

Can't install scipy to Raspberry pi 4 (raspbian)

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

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

PS:The complete traceback is 414 lines. I don't know if I should include here.

Upvotes: 5

Views: 9710

Answers (1)

MehmedB
MehmedB

Reputation: 1137

Try this:

sudo apt update
sudo apt install -y python3-scipy

Upvotes: 5

Related Questions