如何在win10上安装PyFluidSync?

2024-03-28 09:05:39 发布

您现在位置:Python中文网/ 问答频道 /正文

我尝试在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)pip安装,带轮子的本地安装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

没有成功

  • 我试着安装了this水蟒,结果得到了: 当前频道不提供以下程序包: pyfluidsynth“
  • 我读过this 但还没有弄清楚

我很感激你给我一些我应该关注的建议。你知道吗


Tags: pipinnonepackagespy3siteanyrequirement