欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

import librosa 出错了??

程序员文章站 2024-02-08 18:05:46
...

问题复现如下:

>>> import librosa
Traceback (most recent call last):
  File "<pyshell#2>", line 1, in <module>
    import librosa
  File "D:\python36\lib\site-packages\librosa\__init__.py", line 11, in <module>
    from . import cache
  File "D:\python36\lib\site-packages\librosa\cache.py", line 7, in <module>
    from joblib import Memory
  File "D:\python36\lib\site-packages\joblib\__init__.py", line 113, in <module>
    from .memory import Memory, MemorizedResult, register_store_backend
  File "D:\python36\lib\site-packages\joblib\memory.py", line 32, in <module>
    from ._store_backends import StoreBackendBase, FileSystemStoreBackend
  File "D:\python36\lib\site-packages\joblib\_store_backends.py", line 16, in <module>
    from .backports import concurrency_safe_rename
  File "D:\python36\lib\site-packages\joblib\backports.py", line 12, in <module>
    import numpy as np
  File "D:\python36\lib\site-packages\numpy\__init__.py", line 228, in <module>
    from .testing import Tester
  File "D:\python36\lib\site-packages\numpy\testing\__init__.py", line 12, in <module>
    from ._private.utils import *
  File "D:\python36\lib\site-packages\numpy\testing\_private\utils.py", line 57, in <module>
    HAS_LAPACK64 = hasattr(numpy.__config__, 'lapack_ilp64_opt_info')
AttributeError: module 'numpy' has no attribute '__config__'

这意思是缓存的问题,那我关闭py重新打开试试,最终解决。

 

另外有相关问题可以加入QQ群讨论,不设微信群

QQ群:868373192 

语音深度学习群

 

相关标签: DaLao's Notebook