Apple M1 installation and usage
See original GitHub issueExecuting pip install SoundFile
on an M1, installs just fine using generic wheel:
Using cached SoundFile-0.10.3.post1-py2.py3-none-any.whl (21 kB)
But trying to import soundfile shows the libsndfile as missing:
Python 3.9.4 (default, Apr 22 2021, 12:00:49)
[Clang 12.0.0 (clang-1200.0.32.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import soundfile
Traceback (most recent call last):
File "...venv/lib/python3.9/site-packages/soundfile.py", line 142, in <module>
raise OSError('sndfile library not found')
OSError: sndfile library not found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "...venv/lib/python3.9/site-packages/soundfile.py", line 162, in <module>
_snd = _ffi.dlopen(_os.path.join(
OSError: cannot load library '...venv/lib/python3.9/site-packages/_soundfile_data/libsndfile.dylib': dlopen(...venv/lib/python3.9/site-packages/_soundfile_data/libsndfile.dylib, 2): image not found
>>>
Installing the libsndfile
through brew, is not picked up either.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:11
- Comments:29 (18 by maintainers)
Top Results From Across the Web
If you need to install Rosetta on your Mac
If you need to install Rosetta on your Mac. Rosetta 2 enables a Mac with Apple silicon to use apps built for a...
Read more >Tips and Tricks to Set Up Your Apple M1 for Development
Courier's Software Engineer Chris Gradwohl details some tips and tricks around setting up a new Apple M1 machine for development.
Read more >How to Install Unsupported Development Software on M1 ...
An M1 Mac only has an M1 architecture chip, so you'll have to adapt to M1 architecture if you plan to use it....
Read more >How to Install Windows 11 on Apple M1 Macs in 2022!
Need Windows 11 but you want to buy an Apple Silicon Mac ? This is the BEST, quickest, and most convenient way to...
Read more >How to install Windows on M1 Macs - the super-easy way
Although M1 Macs lack support for traditional Boot Camp x86 Windows installations, it's super-easy to install Windows for ARM on your M1 Mac...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Quick workaround for everybody.
Add:
export DYLD_LIBRARY_PATH="/opt/homebrew/lib:$DYLD_LIBRARY_PATH"
to your
~/.zshrc
.Any news on this release? I’d really like to use this package on my M1 machine 😬