简体   繁体   English

库导入错误:Python中的Mlpy

[英]Library Importing Error :Mlpy in python

I used python version 2.7 and build a program. 我使用python版本2.7并构建了一个程序。 I used pip install mlpy to install the mlpy to my python version. 我使用pip install mlpy安装到我的python版本。 But dtw_subsequence is not there. 但是dtw_subsequence不存在。 Error came with no such module. 没有此类模块时出错。

Then I use https://osdn.net/frs/g_redir.php?m=netix&f=%2Fmlpy%2Fmlpy+3.5.0%2Fmlpy-3.5.0.win32-py2.7.exe download and install. 然后我使用https://osdn.net/frs/g_redir.php?m=netix&f=%2Fmlpy%2Fmlpy+3.5.0%2Fmlpy-3.5.0.win32-py2.7.exe下载并安装。 Error came as 错误出现

ImportError: DLL load failed: %1 is not a valid Win32 application. ImportError:DLL加载失败:%1不是有效的Win32应用程序。

Is there any libraries that can use similar function dtw_subsequence ? 有没有可以使用类似功能dtw_subsequence库?

my code 我的代码

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

I think mlpy is not installed when you used pip install mlpy. 我认为使用pip install mlpy时未安装mlpy。 you can try using easy_install mlpy. 您可以尝试使用easy_install mlpy。

If it still doesn't work you can download the latest version rom http://mlpy.sourceforge.net/ 如果仍然无法使用,则可以从http://mlpy.sourceforge.net/下载最新版本。

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

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