Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing pyfluidsynth on windows

I'm trying to install pyfluidsynth on windows. I used pip install pyfluidsynth in the command prompt, but when I tried to import fluidsynth in my python code I get:

 ModuleNotFoundError: No module named 'FluidSynth'

When I tried to install FluidSynth (by using pip install fluidsynth) another binding package was installed with FluidSynth 0.2 from several years ago.

Can anybody help with specific details on how to install pyfluidsynth on windows and use it?

import FluidSynth

Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "C:\Program Files\JetBrains\PyCharm 2018.3.2\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'FluidSynth'
like image 800
david Avatar asked Oct 16 '22 08:10

david


1 Answers

For recent FluidSynth versions there do not seem to be pre-built binaries for ms-windows available. (Note that development is now done on github; the sourceforge site is stale.) The latest source code releases are here.

But the FluidSynth wiki has instructions for building it on ms-windows.

Note: FluidSynth (more precisely, its shared library) is a requirement for using pyfluidsynth. See the README.

like image 183
Roland Smith Avatar answered Oct 21 '22 00:10

Roland Smith