本文介绍了FileNotFoundError:[WinError 2]系统找不到指定的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我曾经用librosa加载波形文件,但是失败了

I used to load waveform file with librosa but failed

我试图检查kernel.jason文件进行修复

I tried to check the kernel.jason file to fix it

import librosa
import matplotlib.pyplot as plt
import numpy as np
import librosa.display
import IPython.display as ipd
%matplotlib inline

filepath = './audio_train/happy/'
filename = filepath + '00334.wav'

y, sr = librosa.load(filename, sr=None)

推荐答案

我通过在提示时输入conda install -c conda-forge librosa来解决此问题

i fix this problem by entering conda install -c conda-forge librosa at prompt

这篇关于FileNotFoundError:[WinError 2]系统找不到指定的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-18 13:19