Python 'midi' 没有属性 'Pattern'
Python 'midi' has no attribute 'Pattern'
最近我一直在尝试使用 tensorflow 进行机器学习。 This tutorial,我卡住了,因为我一直收到错误:AttributeError: module 'midi' has no attribute 'Pattern'
有谁知道如何解决这个错误?我试过安装 py-midi (pip)、python-midi (github) 和 midi 模块 (pip)。但是,midi 模块从未正确安装 ("Could not find a version that satisfies the requirement midi")。我正在使用 python 3.5
我的代码:
import midi
pattern = midi.Pattern()
track = midi.Track()
pattern.append(track)
-提前致谢!
通过直接从 git 安装模块修复了此错误:pip install git+https://github.com/vishnubob/python-midi@feature/python3
在 this git 中心页面上找到此命令。
最近我一直在尝试使用 tensorflow 进行机器学习。 This tutorial,我卡住了,因为我一直收到错误:AttributeError: module 'midi' has no attribute 'Pattern'
有谁知道如何解决这个错误?我试过安装 py-midi (pip)、python-midi (github) 和 midi 模块 (pip)。但是,midi 模块从未正确安装 ("Could not find a version that satisfies the requirement midi")。我正在使用 python 3.5
我的代码:
import midi
pattern = midi.Pattern()
track = midi.Track()
pattern.append(track)
-提前致谢!
通过直接从 git 安装模块修复了此错误:pip install git+https://github.com/vishnubob/python-midi@feature/python3
在 this git 中心页面上找到此命令。