FileNotFoundError:[WinError 2]系统找不到指定的文件 [英] FileNotFoundError: [WinError 2] system can't find the file specified

查看:3957
本文介绍了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)

FileNotFoundError:[WinError 2]系统找不到文件 指定.

FileNotFoundError: [WinError 2] The system cannot find the file specified.

推荐答案

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

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

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

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆