最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

音頻處理 windows10下python三方庫(kù)librosa安裝教程

 更新時(shí)間:2020年06月20日 12:48:26   作者:jn10010537  
這篇文章主要介紹了音頻處理 windows10下python三方庫(kù)librosa安裝方法,本文給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下

librosa是處理音頻庫(kù)里的opencv,使用python腳本研究音頻,先安裝三方庫(kù)librosa。

如下通過(guò)清華鏡像源安裝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,報(bào)的是numba的錯(cuò)誤!

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_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庫(kù)!

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

總結(jié)

到此這篇關(guān)于音頻處理 windows10下python三方庫(kù)librosa安裝教程的文章就介紹到這了,更多相關(guān)音頻處理python三方庫(kù)librosa安裝內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

  • vscode 與pycharm 配置 autopep8自動(dòng)格式化代碼

    vscode 與pycharm 配置 autopep8自動(dòng)格式化代碼

    autopep8是一個(gè)可以將Python代碼自動(dòng)排版為PEP8風(fēng)格第三方包,使用它可以輕松地排版出格式優(yōu)美整齊的代碼,這里就為大家分享一下具體的方法
    2023-09-09
  • Python實(shí)現(xiàn)的爬取百度貼吧圖片功能完整示例

    Python實(shí)現(xiàn)的爬取百度貼吧圖片功能完整示例

    這篇文章主要介紹了Python實(shí)現(xiàn)的爬取百度貼吧圖片功能,結(jié)合完整實(shí)例形式分析了Python實(shí)現(xiàn)的百度貼吧圖片爬蟲(chóng)相關(guān)操作技巧,需要的朋友可以參考下
    2019-05-05
  • Python編程argparse入門(mén)淺析

    Python編程argparse入門(mén)淺析

    這篇文章主要介紹了Python編程argparse入門(mén)淺析,分享了相關(guān)代碼,小編覺(jué)得還是挺不錯(cuò)的,具有一定借鑒價(jià)值,需要的朋友可以參考下
    2018-02-02
  • 基于Python List的賦值方法

    基于Python List的賦值方法

    今天小編就為大家分享一篇基于Python List的賦值方法,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。一起跟隨小編過(guò)來(lái)看看吧
    2018-06-06
  • VSCode格式化Python文件的方法

    VSCode格式化Python文件的方法

    這篇文章主要介紹了VSCode格式化Python文件的方法,本文給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友參考下吧
    2023-12-12
  • python3中數(shù)組逆序輸出方法

    python3中數(shù)組逆序輸出方法

    在本篇文章里小編給大家整理的是一篇關(guān)于python3中數(shù)組逆序輸出方法內(nèi)容,有需要的朋友們可以學(xué)習(xí)下。
    2020-12-12
  • Python中Yield的基本用法及Yield與return的區(qū)別解析

    Python中Yield的基本用法及Yield與return的區(qū)別解析

    Python中有一個(gè)非常有用的語(yǔ)法叫做生成器,用到的關(guān)鍵字就是yield,這篇文章主要介紹了Python中Yield的基本用法及Yield與return的區(qū)別,需要的朋友可以參考下
    2022-10-10
  • Python使用arrow庫(kù)優(yōu)雅地處理時(shí)間數(shù)據(jù)詳解

    Python使用arrow庫(kù)優(yōu)雅地處理時(shí)間數(shù)據(jù)詳解

    雖然Python提供了多個(gè)內(nèi)置模塊用于操作日期時(shí)間,但有的時(shí)候并不能滿足我們的需求,所以下面這篇文章主要給大家介紹了關(guān)于Python使用arrow庫(kù)如何優(yōu)雅地處理時(shí)間數(shù)據(jù)的相關(guān)資料,需要的朋友可以參考借鑒,下面來(lái)一起看看吧。
    2017-10-10
  • python web應(yīng)用程序之Django數(shù)據(jù)庫(kù)詳解

    python web應(yīng)用程序之Django數(shù)據(jù)庫(kù)詳解

    這篇文章主要介紹了python web應(yīng)用程序之Django數(shù)據(jù)庫(kù),本文通過(guò)實(shí)例代碼給大家介紹的非常詳細(xì),需要的朋友可以參考下
    2024-06-06
  • python正則表達(dá)式之作業(yè)計(jì)算器

    python正則表達(dá)式之作業(yè)計(jì)算器

    這篇文章主要為大家詳細(xì)介紹了python正則表達(dá)式之作業(yè)計(jì)算器,文中示例代碼介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們
    2016-03-03

最新評(píng)論

绥棱县| 汶川县| 平陆县| 澄迈县| 正安县| 宾阳县| 安远县| 林西县| 岑巩县| 嘉鱼县| 广南县| 道真| 石阡县| 昌江| 嵊泗县| 九龙城区| 邵阳市| 延长县| 德阳市| 砀山县| 山丹县| 高雄县| 和龙市| 宾川县| 永登县| 盐津县| 攀枝花市| 宁武县| 阿荣旗| 长岭县| 双城市| 山阴县| 庄河市| 迁安市| 鹿泉市| 福鼎市| 西华县| 东乌珠穆沁旗| 上思县| 大关县| 望城县|