小编Waa*_*him的帖子

我无法在python上安装pyaudio吗?怎么做?

我有一台Windows 10 pc,我想安装pyaudio以与我的chatbot一起使用,由chatterbot提供支持,我尝试使用2种不同的方式来安装pyaudio。方法是在命令提示符下编写

python -m pip install PyAudio
Run Code Online (Sandbox Code Playgroud)

结果是:

   C:\Users\Waaberi>python -m pip install PyAudio
Collecting PyAudio
  Using cached https://files.pythonhosted.org/packages/ab/42/b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b/PyAudio-0.2.11.tar.gz
Installing collected packages: PyAudio
  Running setup.py install for PyAudio ... error
    Complete output from command C:\Users\Waaberi\AppData\Local\Programs\Python\Python37-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Waaberi\\AppData\\Local\\Temp\\pip-install-e5le61j0\\PyAudio\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Waaberi\AppData\Local\Temp\pip-record-adj3zivl\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build\lib.win32-3.7
    copying src\pyaudio.py -> build\lib.win32-3.7
    running build_ext
    building '_portaudio' extension
    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft …
Run Code Online (Sandbox Code Playgroud)

python voice-recognition pyaudio python-3.x chatterbot

11
推荐指数
7
解决办法
6万
查看次数