我已经运行了此命令,但它给了我错误----> pip install PyAudio

时间:2019-12-03 15:59:19

标签: python-3.x

python -m pip安装PyAudio 收集PyAudio   使用缓存的https://files.pythonhosted.org/packages/ab/42/b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b/PyAudio-0.2.11.tar.gz 安装收集的软件包:PyAudio     运行setup.py install for PyAudio ...错误     错误:命令错误,退出状态为1:      命令:'C:\ Users \ admin \ AppData \ Local \ Programs \ Python \ Python38-32 \ python.exe'-u -c'import sys,setuptools,tokenize; sys.argv [0] ='“'”'C:\ Users \ admin \ AppData \ Local \ Temp \ pip-install-j8t4frrt \ PyAudio \ setup.py'“'”'; 文件 ='“'”'C:\ Users \ admin \ AppData \ Local \ Temp \ pip-install-j8t4frrt \ PyAudio \ setup.py'“'”'; f = getattr(tokenize, '“”“'open'”'“,打开)(文件); code = f.read()。replace('”'“'\ r \ n'”'“', '“'”'\\ n'“'”'); f.close(); exec(compile(code, file ,'“'”'exec'“'”')))'安装--record'C:\ Users \ admin \ AppData \ Local \ Temp \ pip-record-bl140nhh \ install-record.txt'-单一版本-外部管理--compile          CWD:C:\ Users \ admin \ AppData \ Local \ Temp \ pip-install-j8t4frrt \ PyAudio \     完整的输出(9行):     运行安装     运行构建     运行build_py     创建版本     创建build \ lib.win32-3.8     复制src \ pyaudio.py-> build \ lib.win32-3.8     运行build_ext     建立'_portaudio'扩展名     错误:需要Microsoft Visual C ++ 14.0。用它 “ Microsoft Visual C ++生成工具”:https://visualstudio.microsoft.com/downloads/     ---------------------------------------- 错误:命令错误,退出状态为1:'C:\ Users \ admin \ AppData \ Local \ Programs \ Python \ Python38-32 \ python.exe'-u -c'import sys,setuptools,tokenize; sys.argv [0] ='“'”'C:\ Users \ admin \ AppData \ Local \ Temp \ pip-install-j8t4frrt \ PyAudio \ setup.py'“'”'; 文件 ='“'”'C:\ Users \ admin \ AppData \ Local \ Temp \ pip-install-j8t4frrt \ PyAudio \ setup.py'“'”'; f = getattr(tokenize, '“'“'打开'”'”', 打开)(文件);代码= f.read()。replace('“'”'\ r \ n'“'”','“'”'\ n'“'”' ); f.close(); exec(编译(代码,文件,'“'”'exec'“'”'))'安装-记录'C:\ Users \ admin \ AppData \ Local \ Temp \ pip-record-bl140nhh \ install-record.txt'--single-version-externally-managed --compile检查日志以获取完整的命令输出。

0 个答案:

没有答案