OSError: sndfile library not found
#4
by
						
0xcap
	
							
						- opened
							
					
Getting OSError: sndfile library not found on Mac OS  23.5.0 Darwin Kernel Version 23.5.0 arm64. Libsndfile is indeed installed, but it looks like it’s getting searched for in the wrong directory (/env/lib/python3.9/site-packages/_soundfile_data/).
Had to resort to doing:
ln -s  /Users/me/opt/miniconda3/lib/ ./env/lib/python3.9/site-packages/_soundfile_data
which is suboptimal.
If you're running on linux, try installing the library with the command below and retry. I hope my answer helps.
sudo apt install libsndfile1