【发布时间】:2017-05-31 17:11:36
【问题描述】:
我使用了 python 2.7 版本并构建了一个程序。我使用pip install mlpy 将mlpy 安装到我的python 版本。
但是dtw_subsequence 不存在。没有这样的模块会出现错误。
然后我用https://osdn.net/frs/g_redir.php?m=netix&f=%2Fmlpy%2Fmlpy+3.5.0%2Fmlpy-3.5.0.win32-py2.7.exe下载安装。错误来了
ImportError:DLL 加载失败:%1 不是有效的 Win32 应用程序。
有没有库可以使用类似的功能dtw_subsequence?
我的代码
for fileName in os.listdir(dbPath):
if fileName.endswith('.csv'):
reference = manager.readMidi(dbPath, fileName)
dist, cost, path = mlpy.dtw_subsequence(record, reference)
temp.append([int(dist), fileName[:-10]])
return temp
【问题讨论】:
标签: python python-2.7