Skip to content Skip to sidebar Skip to footer

Can't Import Soundfile

I'm using Anaconda and I'm trying to import soundfile/pysoundfile. I installed the package by running conda install -c conda-forge pysoundfile and I think it succeeded because

Solution 1:

Read the Breaking Changes section here

we changed the import name from import pysoundfile to import soundfile in 0.7.

workaround

pip install SoundFile

enter image description here

Solution 2:

  • I experienced this error as a result of using the librosa library, which uses SoundFile
  • SoundFile is not available for a conda install.
  • In my case, I had already done pip uninstall SoundFile, which then lead to an import error that the package couldn't be found.
  • Then I did pip install SoundFile, which installed a newer version and resolved the error.
  • This worked on Windows 10 with Anaconda, python 3.8.11, SoundFile 0.10.3.post1, librosa 0.8.1

Post a Comment for "Can't Import Soundfile"