浅析音频处理 windows10下python三方库librosa安装教程黄沙领主大转盘

本文是关于浅析音频处理 windows10下python三方库librosa安装教程黄沙领主大转盘,由西南之窗方言教育网yumixiongdi.com2021-06-17日编辑,音频处理 windows10下python三方库librosa安装教程,黄沙领主大转盘。


音频处理 windows10下python三方库librosa安装教程,黄沙领主大转盘… 浅析音频处理 windows10下python三方库librosa安装教程黄沙领主大转盘

librosa是处理音频库里的opencv,使用python脚本研究音频,先安装三方库librosa。

如下通过清华镜像源安装librosa;

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple librosa

D:\D00_Python3\D00A2_python3.7.3\install>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple librosa

Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Processing c:\users\administrator\appdata\local\pip\cache\wheels\6e\d3\47\7582e7e63ee9127f4773adeb8dcd8490771c063e2607354ba0\librosa-0.7.2-py3-none-any.whl
Requirement already satisfied: numba爱上极品总裁>=0.43.0 in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from librosa) (0.50.0)
Requirement already satisfied: joblib>=0.12 in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from librosa) (0.15.1)
Requirement already satisfied: resampy>=0.2.2 in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from librosa) (0.2.2)
Requirement already satisfied: numpy>=1.15.0 in d:\d00_python3\d00a2_python3.7.3\install\lib\必好孕自助捐精网site-packages (from librosa) (1.18.5)
Requirement already satisfied: audioread>=2.0.0 in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from librosa) (2.1.8)
Requirement already satisfied: scipy>=1.0.0 in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from librosa) (1.4.1)
Requirement already satisfied: soundfile>=0.9.0 in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from librosa) (0.10.3.post1)
Requirement already satisfied: scikit-learn!=0.19.0,>=0.14.0 in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from librosa) (0.23.1)
Requirement already satisfied: six>=1.3 in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from librosa) (1.15.0)
Requirement already satisfied: decorator>=3.0.0 in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from librosa) (4.4.2)
Requirement already satisfied: setuptools in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from numba>=0.43.0->librosa) (47.1.1)
Requirement already satisfied: llvmlite<0.34,>=0.33.0.dev0 in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from numba>=0.43.0->librosa) (0.33.0)
Requirement already satisfied: cffi>=1.0 in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from soundfile>=0.9.0->librosa) (1.14.0)
Requirement already satisfied: threadpoolctl>=2.0.0 in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from scikit-learn!=0.19.0,>=0.14.0->librosa) (2.1.0)
Requirement already satisfied: pycparser in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from cffi>=1.0->soundfile>=0.9.0->librosa) (2.20)
Installing collected packages: librosa
Successfully installed librosa-0.7.2

D:\D00_Python3\D00A2_python3.7.3\install>

pip list查看三方包:

D:\D00_Python3\D00A2_python3.7.3\install>pip listPackage       Version-------------------- ------------absl-py       0.9.0astor        0.8.1audioread      2.1.8cffi         1.14.0decorator      4.4.2defusedxml      0徐妍姬.6.0gast         0.3.3google-pasta     0.2.0grpcio        1.29.0h5py         2.10.0importlib-metadata  1.6.1joblib        0.15.1Keras-Applications  1.0.8Keras-Preprocessing 1.1.2librosa       0.7.2llvmlite       0.33.0Markdown       3.2.2networkx       2.2numba        0.50.0numpy        1.18.5pip         20.1.1protobuf       3.12.2pycparser      2.20resampy       0.2.2scikit-learn     0.23.1scipy        1.4.1setuptools      47.1.1six         1.15.0SoundFile      0.10.3.post1tensorboard     1.14.0tensorflow      1.14.0tensorflow-estimator 1.14.0termcolor      1.1.0threadpoolctl    2.1.0Werkzeug       1.0.1wheel        0.34.2wrapt        1.12.1zipp         3.1.0 D:\D00_Python3\D00A2_python3.7.3\install>

如上

librosa ----0.7.2

numba-----0.50.0

下面使用librosa,报的是numba的错误!

D:\D00_Python3\D00A2_python3.7.3\install>python -c "import librosa"Traceback (most recent call last): File "<string>", line 1, in <module> File "D:\D00_Python3\D00A2_python3.7.3\install\lib\site-packages\librosa\__init__.py", line 12, in <module>  from . import core File "D:\D00_Python3\D00A2_python3.7.3\install\lib\site-packages\librosa\core\__init__.py", line 125, in <module>  from .time_frequency import * # pylint: disable=wildcard-import File "D:\D00_Python3\D00A2_python3.7.3\install\lib\site-packages\librosa\core\time_frequency.py", line 11, in <module>  from ..util.exceptions import ParameterError File "D:\D00_Python3\D00A2_python3.7.3\install\lib\site-packages\librosa\util\__init__.py", line 77, in <module>  from .utils import * # pylint: disable=wildcard-import File "D:\D00_Python3\D00A2_python3.7.3\install\lib\site-packages\librosa\util\utils.py", line 15, in <module>  from .decorators import deprecated File "D:\D00_Python3\D00A2_python3.7.3\install\lib\site-packages\librosa\util\decorators.py", line 9, in <module>  from numba.decorators import jit as optional_jitModuleNotFoundError: No module named 'numba.decorators' D:\D00_Python3\D00A2_python3.7.3\install>

解决办法:

卸载numba后,重新安装降版本的numba,安装numba==0.48.0

pip uninstallnumba

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple numba==0.48.0

python -c "import librosa;print(librosa.__version__)"

可以看到成功安装了正确可使用的librosa库!

D:\D00_Python3\D00A2_python3.7.3\install>pip uninstall numbaFound existing installation: numba 0.50.0Uninstalling numba-0.50.0: Would remove:  d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages\numba-0.50.0.dist-info\*  d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages\numba\*  d:\d00_python3\d00a2_python3.7.3\install\scripts\numba  d:\d00_python3\d00a2_python3.7.3\install\scripts\pyccProceed (y/n)? y Successfully uninstalled numba-0.50.0 D:\D00_Python3\D00A2_python3.7.3\install>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple numba==0.48.0Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simpleCollecting numba==0.48.0 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/f5/ca/9e47464d388c3372454639d1739fa21605862c8815d53279e1216b5694e1/numba-0.48.0-cp37-cp37m-win_amd64.whl (2.1 MB)|█████████████████████████████▌ | 1.9 MB 2.2 MB/s eta 0:00:01   |██████████████████████████████ | 2.0 MB 2.2 MB/s eta 0:00:01   |██████████████████████████████▌ | 2.0 MB 2.2 MB/s eta 0:00:0   |███████████████████████████████ | 2.0 MB 2.2 MB/s eta 0:00:0   |███████████████████████████████▌| 2.1 MB 2.2 MB/s eta 0:00:    |████████████████████████████████| 2.1 MB 2.2 MB/sRequirement already satisfied: setuptools in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from numba==0.48.0) (47.1.1)Requirement already satisfied: numpy>=1.15 in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from numba==0.48.0) (1.18.5)Collecting llvmlite<0.32.0,>=0.31.0dev0 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/1d/83/cd2843726a6316e372822e9e42cd0083b6d1d98d89d53880e7e67d5eec68/llvmlite-0.31.0-cp37-cp37m-win_amd64.whl (13.6 MB)████████████████████████████▌  | 12.1 MB 3.3 MB/s eta 0:00:01   |█████████████████████████████  | 12.5 MB 3.3 MB/s eta 0:00:01   |██████████████████████████████ | 12.9 MB 3.3 MB/s eta 0:00:0   |██████████████████████████████▌ | 13.1 MB 3.3 MB/s eta 0:00:    |████████████████████████████████| 13.6 MB 434 kB/sInstalling collected packages: llvmlite, numba Attempting uninstall: llvmlite  Found existing installation: llvmlite 0.33.0  Uninstalling llvmlite-0.33.0:   Successfully uninstalled llvmlite-0.33.0Successfully installed llvmlite-0.31.0 numba-0.48.0  D:\D00_Python3\D00A2_python3.7.3\install>python -c "import librosa;print(librosa.__version__) "0.7.2

总结

到此这篇关于音频处理 windows10下python三方库librosa安装教程的文章就介绍到这了,更多相关音频处理python三方库librosa安装内容请搜索个人范文以前的文章或继续浏览下面的相关文章希望大家以后多多支持个人范文!

黄沙领主大转盘。
专题推荐:黄沙领主大转盘(14) 个人资料 清明节的由来及传说 清明寄语写一句话 儿童侦探故事 诗篇第一篇 名人尊师的故事 布衣布舍 荣格奖金制度 杜马禅园 藏名诗 节约用水的故事 开心一日游的心情说说 吊唁词 表决心的话 袋熊的便便 人为什么活着这么累 父夫子德言容功 lia开头的成语 唐之韵解说词 入党积极分子现实表现 学苑新报数学天地答案 骂人秘籍 快板词 晓娜手记 哈登通缉令 拿来主义教案 年鉴怎么写 谐音学韩语 罗马统治时期的英国 质数和合数 女生节祝福语 三八妇女节祝福语 赏花的心情短语 班主任工作随笔 立夏文案 办公室工作总结 工作总结报告 微信 形势 个人总结怎么写 团支部工作总结 新冠疫情工作个人总结 教育教学工作总结 见习总结
本文地址:/zixue/20210617/246326.html 转载请注明出处!
相关文章: