擅长:python、mysql、java
<p>虽然@William的解决方案会起作用,但我认为您应该这样做,而不是安装~4 gb的程序</p>
<p>转到<a href="https://www.lfd.uci.edu/%7Egohlke/pythonlibs/#pyaudio" rel="nofollow noreferrer">here</a>,然后安装合适的车轮
如:
适合我的控制盘是PyAudio-0.2.11-cp39-cp39-win_amd64.whl,因为我有python 3.9(cp39),它是64位安装(amd64)。
在将其安装到目录(比如C:/docs)后,转到cmd并写入</p>
<pre><code>cd C:/docs
pip install PyAudio-0.2.11-cp39-cp39-win_amd64.whl
</code></pre>
<p>这应该行得通</p>