我尝试在win10上安装pyfluidsynth,两次获得“成功安装pyfluidsynth-1.2.5” ,但导入失败:
import fluidsynth
ImportError: Couldn't find the FluidSynth library.
import pyfluidsynth
ModuleNotFoundError: No module named 'pyfluidsynth'
阅读this后,我执行了以下步骤:
(1)带有pip安装
(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再次卸载pyfluidsynth ,以便再次拥有一个定义明确的基础
(3)点安装,从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)在win10环境变量中设置路径
C:\Anaconda3\Lib\site-packages\pyFluidSynth
没有成功
我感谢一些我应该关注的建议。