我在 Google Colab 中导入了“pyaudio”库,但发生了 ModuleNotFoundError。但是,它仅在一周前起作用…… :(但现在不起作用……
我尝试使用下一个代码在 colab 中重新安装 pyaudio,但出现相同的错误。
!sudo apt-get install python-pyaudio
!pip install pyaudio
我能怎么做?
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-13-627d880c2452> in <module>()
4 from pydub.effects import normalize
5
----> 6 import pyaudio
7 import scipy.signal
8
ModuleNotFoundError: No module named 'pyaudio'
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------