问题
I have tryed to install pyfluidsynth on win10, got a "Successfully installed pyfluidsynth-1.2.5" twice, but the import fails:
import fluidsynth
ImportError: Couldn't find the FluidSynth library.
import pyfluidsynth
ModuleNotFoundError: No module named 'pyfluidsynth'
After heaving read this, I did the following steps:
(1) with pip install
(base) C:\Users\user>pip install pyfluidsynth
Collecting pyfluidsynth
Using cached https://files.pythonhosted.org/packages/b6/45/7f06ef269e14fb58b3a082beff9399662cc6b522692eb0be9786b23055e0/pyFluidSynth-1.2.5-py3-none-any.whl
Requirement already satisfied: future in c:\anaconda3\lib\site-packages (from pyfluidsynth) (0.17.1)
Installing collected packages: pyfluidsynth
Successfully installed pyfluidsynth-1.2.5
(2) pip uninstall pyfluidsynth again, in order to have a well defined base again
(3) pip install, localy with the wheel downloaded from here
(base) C:\Anaconda3>pip install pyFluidSynth-1.2.5-py3-none-any.whl
Requirement already satisfied: pyFluidSynth==1.2.5 from file:///C:/Anaconda3/pyFluidSynth-1.2.5-py3-none-any.whl in c:\anaconda3\lib\site-packages (1.2.5)
Requirement already satisfied: future in c:\anaconda3\lib\site-packages (from pyFluidSynth==1.2.5) (0.17.1)
(4) set a path in win10 environment variables
C:\Anaconda3\Lib\site-packages\pyFluidSynth
Without success
- I have tryed this Anaconda installation, and got: "The following packages are not available from current channels: pyfluidsynth"
- I have read this with its comments but have not got clear with
I appreciate some suggestions what I should focus on.
来源:https://stackoverflow.com/questions/56209587/how-to-install-pyfluidsynth-on-win10