我已经安装了fluidsynth版本2.0.5,并且正在mingus中使用它。但是,当我运行代码时
from mingus.midi import fluidsynth它返回以下内容
Traceback (most recent call last):
File "/Users/rudiherrig 1 2/Desktop/pythonstuff/musicExp.py", line 1, in <module>
from mingus.midi import fluidsynth
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/mingus/midi/fluidsynth.py", line 37, in <module>
from mingus.midi import pyfluidsynth as fs
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/mingus/midi/pyfluidsynth.py", line 41, in <module>
raise ImportError("Couldn't find the FluidSynth library.")
ImportError: Couldn't find the FluidSynth library.我发现这很令人困惑,因为我安装了fluidsynth。有什么办法解决这个问题吗?编辑:我在我的库中发现了一个名为fluidsynth_dll.dsp的文件,所以我不知道为什么它会返回这个错误。
发布于 2021-10-23 12:32:24
您需要安装libfluidsynth.dll
下载预编译的DLL从:https://zdoom.org/downloads#Support
C:\Windows\System32
到libfluidsynth.dll
libfluidsynth64.dll您也可以使用GitHub项目自行编译它
https://stackoverflow.com/questions/62478717
复制相似问题