日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > python >内容正文

python

python安装第三方库win10_音频处理 windows10下python三方库librosa安装教程

發布時間:2024/1/23 python 40 豆豆
生活随笔 收集整理的這篇文章主要介紹了 python安装第三方库win10_音频处理 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 list

Package Version

-------------------- ------------

absl-py 0.9.0

astor 0.8.1

audioread 2.1.8

cffi 1.14.0

decorator 4.4.2

defusedxml 0.6.0

gast 0.3.3

google-pasta 0.2.0

grpcio 1.29.0

h5py 2.10.0

importlib-metadata 1.6.1

joblib 0.15.1

Keras-Applications 1.0.8

Keras-Preprocessing 1.1.2

librosa 0.7.2

llvmlite 0.33.0

Markdown 3.2.2

networkx 2.2

numba 0.50.0

numpy 1.18.5

pip 20.1.1

protobuf 3.12.2

pycparser 2.20

resampy 0.2.2

scikit-learn 0.23.1

scipy 1.4.1

setuptools 47.1.1

six 1.15.0

SoundFile 0.10.3.post1

tensorboard 1.14.0

tensorflow 1.14.0

tensorflow-estimator 1.14.0

termcolor 1.1.0

threadpoolctl 2.1.0

Werkzeug 1.0.1

wheel 0.34.2

wrapt 1.12.1

zipp 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 "", line 1, in

File "D:\D00_Python3\D00A2_python3.7.3\install\lib\site-packages\librosa\__init__.py", line 12, in

from . import core

File "D:\D00_Python3\D00A2_python3.7.3\install\lib\site-packages\librosa\core\__init__.py", line 125, in

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

from ..util.exceptions import ParameterError

File "D:\D00_Python3\D00A2_python3.7.3\install\lib\site-packages\librosa\util\__init__.py", line 77, in

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

from .decorators import deprecated

File "D:\D00_Python3\D00A2_python3.7.3\install\lib\site-packages\librosa\util\decorators.py", line 9, in

from numba.decorators import jit as optional_jit

ModuleNotFoundError: No module named 'numba.decorators'

D:\D00_Python3\D00A2_python3.7.3\install>

解決辦法:

卸載numba后,重新安裝降版本的numba,安裝numba==0.48.0

pip uninstall numba

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 numba

Found existing installation: numba 0.50.0

Uninstalling 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\pycc

Proceed (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.0

Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple

Collecting 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/s

Requirement 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/s

Installing collected packages: llvmlite, numba

Attempting uninstall: llvmlite

Found existing installation: llvmlite 0.33.0

Uninstalling llvmlite-0.33.0:

Successfully uninstalled llvmlite-0.33.0

Successfully 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安裝內容請搜索我們以前的文章或繼續瀏覽下面的相關文章希望大家以后多多支持我們!

時間: 2020-06-19

總結

以上是生活随笔為你收集整理的python安装第三方库win10_音频处理 windows10下python三方库librosa安装教程的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。