繁体   English   中英

库导入错误:Python中的Mlpy

[英]Library Importing Error :Mlpy in python

我使用python版本2.7并构建了一个程序。 我使用pip install 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

我认为使用pip install mlpy时未安装mlpy。 您可以尝试使用easy_install mlpy。

如果仍然无法使用,则可以从http://mlpy.sourceforge.net/下载最新版本。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM