question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to install scipy on macOS Big Sur (Intel hardware)

See original GitHub issue

After Big Sur update I’m not able to install scipy in any of my virtualenvs.

pip install scipy

generate this error

    numpy.distutils.system_info.NotFoundError: No lapack/blas resources found. Note: Accelerate is no longer supported.
    ----------------------------------------
ERROR: Command errored out with exit status 1: /Users/ernestoarbitrio/.virtualenvs/histolab/bin/python /Users/ernestoarbitrio/.virtualenvs/histolab/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /var/folders/3j/s7l7gl410xx64sk3zg9_ngh40000gn/T/tmppxmdgj6o Check the logs for full command output.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:77
  • Comments:76 (29 by maintainers)

github_iconTop GitHub Comments

69reactions
tommydangerouscommented, May 29, 2021

Wow, this worked. Thank you:

Install openblas:

$ brew install openblas

I used pip3 to install scipy

$ SYSTEM_VERSION_COMPAT=1 \
LDFLAGS="-L/usr/local/opt/openblas/lib" \
CPPFLAGS="-I/usr/local/opt/openblas/include" \
OPENBLAS="$(brew --prefix openblas)" \
pip3 install scipy

Success!!!

Collecting scipy
  Downloading scipy-1.6.3-cp38-cp38-macosx_10_9_x86_64.whl (30.8 MB)
     |████████████████████████████████| 30.8 MB 128 kB/s
Requirement already satisfied: numpy<1.23.0,>=1.16.5 in ./env/lib/python3.8/site-packages (from scipy) (1.19.2)
Installing collected packages: scipy
Successfully installed scipy-1.6.3
53reactions
JorgenPhicommented, Nov 25, 2020

For anyone else that needs SciPy to just install for now, here’s what I did to make it work:

  1. Find your tag
$ pip install packaging
$ python -c"from packaging import tags; print('\n'.join([str(t) for t in tags.sys_tags()]))" |head -5

cp38-cp38-macosx_11_0_x86_64
  1. Download 10_9 wheel from Pypi https://pypi.org/project/scipy/#files

  2. Rename downloaded file to match your tag $ mv scipy-1.5.4-cp38-cp38-macosx_10_9_x86_64.whl scipy-1.5.4-cp38-cp38-macosx_11_0_x86_64.whl

  3. Install wheel $ pip install scipy-1.5.4-cp38-cp38-macosx_11_0_x86_64.whl

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to install SciPy on Apple Silicon (ARM / M1)
According to this Github issue, Scipy doesn't work on MacOS 11 (Big Sur). If none of ...
Read more >
trouble installing on apple silicon M1 · Issue #13409 · scipy ...
I'm having some issues installing scipy on my M1 Macbook Air. 2020 Macbook Air M1 Mac OS Big Sur 11.0.1. khuynh@kmba:~ $ python3...
Read more >
Install Python with NumPy SciPy Matplotlib on ... - YouTube
How to install Python with NumPy, SciPy, Matplotlib on macOS Big Sur Apple Silicon M1.The procedure presented in the video should work on ......
Read more >
Install Python with NumPy SciPy Matplotlib on macOS Big ...
In this tutorial, we'll use Python 3.9 which is the latest stable release of Python at the time of this writing.
Read more >
I can't install TensorFlow-macos a…
I was able to install tensorflow-macos and tensrflow-metal on intel based iMac ... I got this error with (tensorflow-metal) virtualenv on Big Sur...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found