[英]Error with librosa library
So i was working with librosa library in IPython and didn't encounter with any problem so far until yesterday that failed to import it. 所以我在IPython中使用librosa库,到目前为止没有遇到任何问题,直到昨天无法导入它。 Specifically when i try to import librosa it gives me the following error message.
特别是当我尝试导入librosa时,它给我以下错误消息。
import librosa
ImportError Traceback (most recent call last)
<ipython-input-3-6ce83e78f094> in <module>()
----> 1 import librosa
c:\python27\lib\site-packages\librosa\__init__.py in <module>()
12
13 # And all the librosa sub-modules
---> 14 from . import cache
15 from . import core
16 from . import beat
ImportError: cannot import name cache
Can somebody inform me what is this message about and how do i solve this problem? 有人可以告诉我这个消息是什么,我该如何解决这个问题?
Hi I faced a similar problem recently. 嗨,我最近遇到了类似的问题。 Are you sure you aren't getting any error before this?
你确定在此之前没有收到任何错误吗? Whenever I imported LibRosa, the initial error was 'DLL failed to load' in some scipy module.
每当我导入LibRosa时,最初的错误是在某些scipy模块中“DLL无法加载”。 If I ignored the error and imported LibRosa again, then I'd get ImportError:cannot import name cache.
如果我忽略了错误并再次导入了LibRosa,那么我会得到ImportError:无法导入名称缓存。
So I uninstalled NumPy and SciPy, downloaded them from http://www.lfd.uci.edu/~gohlke/pythonlibs/ and reinstalled them. 所以我卸载了NumPy和SciPy,从http://www.lfd.uci.edu/~gohlke/pythonlibs/下载并重新安装它们。 That fixed all import issues.
这解决了所有进口问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.