Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues installing Scipy #11329

Closed
MishalJasmine opened this issue Jan 8, 2020 · 1 comment
Closed

Issues installing Scipy #11329

MishalJasmine opened this issue Jan 8, 2020 · 1 comment
Labels
Build issues Issues with building from source, including different choices of architecture, compilers and OS

Comments

@MishalJasmine
Copy link

MishalJasmine commented Jan 8, 2020

I installed Scipy using the command sudo apt-get install python-numpy python-scipy and looks like the latest version of both are installed. But when I try to install a python package named wfdb using pip install wfdb, it get an error while Building wheel for scipy (PEP 517).

ERROR: Failed building wheel for scipy
Running setup.py clean for scipy
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install- 
fhfmfpqi/scipy/setup.py'"'"'; __file__='"'"'/tmp/pip-install- 
fhfmfpqi/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-fhfmfpqi/scipy
Complete output (9 lines):

`setup.py clean` is not supported, use one of the following instead:

 - `git clean -xdf` (cleans all files)
 - `git clean -Xdf` (cleans all versioned files, doesn't touch
                    files that aren't checked into the git repo)

 Add `--force` to your command to use it anyway if you must (unsupported).

----------------------------------------
 ERROR: Failed cleaning build dir for scipy
 Failed to build scipy
 ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly`

I upgraded pip using pip install --upgrade pip.
python version used: 3.7
Operating System: Raspbian
Can I get some help on this?

@tylerjereddy tylerjereddy added the Build issues Issues with building from source, including different choices of architecture, compilers and OS label Jan 8, 2020
@rgommers
Copy link
Member

What is happening is that pip used build isolation to build a wheel for wfdb; it wants to install every dependency in that clean isolated env just for the wheel build. And there's no SciPy wheel for your platform, so a source build is attempted. Use pip install --no-build-isolation wfdb to avoid this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build issues Issues with building from source, including different choices of architecture, compilers and OS
Projects
None yet
Development

No branches or pull requests

3 participants