我已经安装了流体合成器 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_dll.dsp 的文件,所以我不知道它为什么会返回这个错误。