python - 安装pyaudio时如何解决这个错误?
问题描述
Complete output from command E:\python\project\audi\venv\Scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\DEEPAK~1\\AppData\\Local\\Temp\\pip-install-vog_q_bd\\PyAudio\\setup.py';f=ge
tattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\DEEPAK~1\AppData\Local\Temp\pip-record-el4ifpw9\install-record
.txt --single-version-externally-managed --compile --install-headers E:\python\project\audi\venv\include\site\python3.7\PyAudio:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
copying src\pyaudio.py -> build\lib.win-amd64-3.7
running build_ext
building '_portaudio' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
----------------------------------------
Command "E:\python\project\audi\venv\Scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\DEEPAK~1\\AppData\\Local\\Temp\\pip-install-vog_q_bd\\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\DEEPAK~1\AppData\Local\Temp\pip-record-el4ifpw9\install-record.txt --single-version-ex
ternally-managed --compile --install-headers E:\python\project\audi\venv\include\site\python3.7\PyAudio" failed with error code 1 in C:\Users\DEEPAK~1\AppData\Local\Temp\pip-install-vog_q_bd\PyAudio\
这是我在尝试安装 Pyaudio 时遇到的错误
解决方案
推荐阅读
- javascript - 不同的链接取决于 div-id?
- android-studio - 从 IntelliJ 迁移到 Android Studio 后无法签署 APK(或密码问题?)
- android - 在 android studio 中创建信息图
- c# - 将三元条件放在嵌套的 WebGrid 结果上
- python - 如果它们都在移动,如何检测一个矩形是否在另一个矩形中?
- javascript - Node JavaScript express 从 sequlize 查询中获取的 JavaScript 格式数据
- gradle - 找不到参数的方法 annotationProcessor()
- flutter - 有没有办法在颤动中剪辑应用程序栏?
- javascript - 如何防止在购物车中两次添加相同的产品
- c++ - 从多个线程写入内存区域会导致争用吗?