ModuleNotFoundError:没有名为“audiomentations”的模块

问题描述 投票:0回答:0

在安装和导入 python 包时,此模块在导入时显示错误。我该如何解决这个问题?

import warnings
warnings.filterwarnings("ignore")
import pandas as pd
import numpy as np
import zipfile
from IPython.display import Audio
from pydub import AudioSegment
import matplotlib.pyplot as plt
%matplotlib inline
import seaborn as sns
import os
import pickle
import random
from tqdm import tqdm
import datetime
from audiomentations import *
import multiprocessing
import cv2
# # library used to process the audio files
import librosa
import librosa.display
import sklearn.preprocessing
from sklearn.model_selection import train_test_split
from sklearn.metrics import f1_score
import tensorflow as tf
import tensorflow_addons as tfa
from tensorflow.keras.utils import to_categorical
from tensorflow.keras.utils import plot_model
from tensorflow.keras.layers import Input, Dense, Conv2D, Softmax, LSTM, Embedding, concatenate
from tensorflow.keras.layers import Dropout, BatchNormalization,GlobalAveragePooling2D
from tensorflow.keras.applications import ResNet50, InceptionV3, VGG16
from tensorflow.keras.models import Model,Sequential
from tensorflow.keras.callbacks import ModelCheckpoint, TensorBoard, ReduceLROnPlateau, EarlyStopping
from IPython.display import Image

我曾尝试在各种教科书(jupyter notebook、vscode 和 Google Colab)中运行这段代码,但这似乎也无法与 librosa 模块一起使用。

我得到的错误在下面 enter image description here

jupyter notebook 中显示的其他错误在这里

enter image description here

python audio jupyter-notebook package librosa
© www.soinside.com 2019 - 2024. All rights reserved.