Rud*_*rig 6 python macports fluidsynth macos-mojave
我是一名初级程序员,正在尝试用 python 制作分形音乐。我正在考虑使用 mingus 模块来演奏音符,但是 mingus 需要安装 Fluidsynth。我正在尝试使用 MacPorts 安装 Fluidsynth。我有 Fluidsynth 文件。当我跑步时
sudo port install fluidsynth
Run Code Online (Sandbox Code Playgroud)
在我的 Mac 终端上,它要求我输入密码。然后它说
sudo:端口:找不到命令”
出了什么问题?我使用的是 macOS mojave,如果有帮助的话。
我怀疑你可能没有MacPorts
正确安装。按照MacPorts
文档正确安装。安装后,您可以运行类似命令
port installed
Run Code Online (Sandbox Code Playgroud)
列出您的所有端口。
如果那有效那么你可以这样做
source ~/.bash_profile
Run Code Online (Sandbox Code Playgroud)
它应该有效。从这里查看更多可能的解决方案