【发布时间】:2020-08-03 06:46:30
【问题描述】:
我正在使用 Python Anywhere 部署 Flask Web 应用程序。该应用程序需要 PyAudio 才能工作。我正在尝试通过 bash 控制台(在 venv 中)下载 PyAudio。当我跑步时
pip install file:///C:/Users/usr/Downloads/PyAudio-0.2.11-cp38-cp38-win32.whl
它说
ERROR: PyAudio-0.2.11-cp38-cp38-win32.whl is not a supported wheel on this platform.
【问题讨论】:
-
欢迎幸运!目前尚不清楚您要问的是什么。你能更详细地描述一下吗?执行命令后返回什么样的错误?您尝试解决什么问题?
-
我已经编辑了我最初的帖子,希望能有更好的理解。带来不便敬请谅解。 (以及时间延迟)
-
命令 pip install file:///C:/Users/usr/Downloads/PyAudio-0.2.11-cp38-cp38-win32.whl ...在 PythonAnywhere 上不起作用,因为您提供的路径是 Windows 路径,而 PythonAnywhere 是 Linux 环境。看起来您正在尝试安装 Windows 版本的 PyAudio。综上所述,您的网站使用 PyAudio 做什么?在 PythonAnywhere 上运行的代码在没有声音硬件的云服务器上运行,因此您将无法在它们上录制或播放音频。
标签: python flask speech-recognition pyaudio pythonanywhere