简体   繁体   English

无法在 pycharm 终端上安装 pyaudio

[英]cannot install pyaudio on pycharm terminal

pip install pyaudio Collecting pyaudio Downloading PyAudio-0.2.11.tar.gz (37 kB) Using legacy 'setup.py install' for pyaudio, since package 'wheel' is not installed. pip install pyaudio 收集 pyaudio 下载 PyAudio-0.2.11.tar.gz (37 kB) 对 pyaudio 使用旧版“setup.py install”,因为未安装包“wheel”。 Installing collected packages: pyaudio Running setup.py install for pyaudio ... error ERROR: Command errored out with exit status 1: command: 'c:\\users\\pankaj\\appdata\\local\\programs\\python\\python38-32\\python.exe' -u -c 'import sys, setuptools, tokenize;安装收集的软件包:pyaudio 正在运行 setup.py install for pyaudio ... 错误 错误:命令出错,退出状态 1:命令:'c:\\users\\pankaj\\appdata\\local\\programs\\python\\python38-32\\python。 exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Pankaj\\AppData\\L ocal\\Temp\\pip-install-u6zhmegn\\pyaudio\\setup.py'"'"'; sys.argv[0] = '"'"'C:\\Users\\Pankaj\\AppData\\L ocal\\Temp\\pip-install-u6zhmegn\\pyaudio\\setup.py'"'"'; file ='"'"'C:\\Users\\Pank aj\\AppData\\Local\\Temp\\pip-install-u6zhmegn\\pyaudio\\setup.py'"'"';f=getattr(tokeni ze, '"'"'open'"'"', open)( file );code=f.read().replace('"'"'\\r\\n'"'"', '"'"'\\n'"'"') ;f.close();exec(compile(code, file , '"'"'exec'"'"'))' install --record 'C:\\Users\\Pa nkaj\\AppData\\Local\\Temp\\pip-record-wcc393v3\\install-record.txt' --single-version-extern ally-managed --compile --install-headers 'c:\\users\\pankaj\\appdata\\local\\programs\\python \\python38-32\\Include\\pyaudio' cwd: C:\\Users\\Pankaj\\AppData\\Local\\Temp\\pip-install-u6zhmegn\\pyaudio file ='"'"'C:\\Users\\Pank aj\\AppData\\Local\\Temp\\pip-install-u6zhmegn\\pyaudio\\setup.py'"'"';f=getattr(tokeni ze, '"'"' open'"'"', open)( file );code=f.read().replace('"'"'\\r\\n'"'"', '"'"'\\n'"'"' ) ;f.close();exec(compile(code, file , '"'"'exec'"'"'))' install --record 'C:\\Users\\Pankaj\\AppData\\Local\\Temp\\pip -record-wcc393v3\\install-record.txt' --single-version-extern ally-managed --compile --install-headers 'c:\\users\\pankaj\\appdata\\local\\programs\\python\\python38-32\\Include \\pyaudio' cwd: C:\\Users\\Pankaj\\AppData\\Local\\Temp\\pip-install-u6zhmegn\\pyaudio
Complete output (10 lines): running install running build running build_py creating build creating build\\lib.win32-3.8 copying src\\pyaudio.py -> build\\lib.win32-3.8 running build_ext building '_portaudio' extension b'\\\\x00C\\x00o\\x00m\\x00m\\x00o\\x00n\\x00 \\x00w\\x00a\\x00s\\x00 \\x00u\\x00n\\x00e\\x00x\\x00 p\\x00e\\x00c\\x00t\\x00e\\x00d\\x00 \\x00a\\x00t\\x00 \\x00t\\x00h\\x00i\\x00s\\x00 \\x00t\\x00i\\x00m完整输出(10 行): running install running build running build_py 创建 build 创建 build\\lib.win32-3.8 copying src\\pyaudio.py -> build\\lib.win32-3.8 running build_ext building '_portaudio' extension b'\\\\x00C \\x00o\\x00m\\x00m\\x00o\\x00n\\x00 \\x00w\\x00a\\x00s\\x00 \\x00u\\x00n\\x00e\\x00x\\x00 p\\x00e\\x00c\\x00t\\x00e\\x00t\\x00e\\x00d\\x00d x00t\\x00h\\x00i\\x00s\\x00\\x00t\\x00i\\x00m
x00e\\x00.\\x00\\r\\x00\\n\\x00' error: Microsoft Visual C++ 14.0 is required. x00e\\x00.\\x00\\r\\x00\\n\\x00' 错误:需要 Microsoft Visual C++ 14.0。 Get it with "Microsoft Visual C++ Bui ld Tools": https://visualstudio.microsoft.com/downloads/ ---------------------------------------- ERROR: Command errored out with exit status 1: 'c:\\users\\pankaj\\appdata\\local\\programs使用“Microsoft Visual C++ 构建工具”获取: https : //visualstudio.microsoft.com/downloads/ -------------------------- -------------- 错误:命令出错,退出状态为 1:'c:\\users\\pankaj\\appdata\\local\\programs
python\\python38-32\\python.exe' -u -c 'import sys, setuptools, tokenize; python\\python38-32\\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = ' "'"'C:\\Users\\Pankaj\\AppData\\Local\\Temp\\pip-install-u6zhmegn\\pyaudio\\setup.py'"' "'; sys.argv[0] = '"'"'C:\\Users\\Pankaj\\AppData\\Local\\Temp\\pip-install-u6zhmegn\\pyaudio\\setup.py'"'"'; file ='"'"'C:\\Users\\Pankaj\\AppData\\Local\\Temp\\pip-install-u6zhmegn\\pyaudi o\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)( file );code=f.read().repl ace('"'"'\\r\\n'"'"', '"'"'\\n'"'"');f.close();exec(compile(code, file , '"'"'exec'"'"' ))' install --record 'C:\\Users\\Pankaj\\AppData\\Local\\Temp\\pip-record-wcc393v3\\install-re cord.txt' --single-version-externally-managed --compile --install-headers 'c:\\users\\pan kaj\\appdata\\local\\programs\\python\\python38-32\\Include\\pyaudio' Check the logs for full command output. file ='"'"'C:\\Users\\Pankaj\\AppData\\Local\\Temp\\pip-install-u6zhmegn\\pyaudi o\\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\\Pankaj\\AppData\\Local\\Temp\\pip- record-wcc393v3\\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\\users\\pan kaj\\appdata\\local\\programs\\python\\python38-32\\Include \\pyaudio' 检查日志以获取完整的命令输出。

pip install pyaudio Collecting pyaudio Downloading PyAudio-0.2.11.tar.gz (37 kB) Using legacy 'setup.py install' for pyaudio, since package 'wheel' is not installed. pip install pyaudio 收集 pyaudio 下载 PyAudio-0.2.11.tar.gz (37 kB) 对 pyaudio 使用旧版“setup.py install”,因为未安装包“wheel”。 Installing collected packages: pyaudio Running setup.py install for pyaudio ... error ERROR: Command errored out with exit status 1: command: 'c:\\users\\pankaj\\appdata\\local\\programs\\python\\python38-32\\python.exe' -u -c 'import sys, setuptools, tokenize;安装收集的软件包:pyaudio 正在运行 setup.py install for pyaudio ... 错误 错误:命令出错,退出状态 1:命令:'c:\\users\\pankaj\\appdata\\local\\programs\\python\\python38-32\\python。 exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Pankaj\\AppData\\L ocal\\Temp\\pip-install-u6zhmegn\\pyaudio\\setup.py'"'"'; sys.argv[0] = '"'"'C:\\Users\\Pankaj\\AppData\\L ocal\\Temp\\pip-install-u6zhmegn\\pyaudio\\setup.py'"'"'; file ='"'"'C:\\Users\\Pank aj\\AppData\\Local\\Temp\\pip-install-u6zhmegn\\pyaudio\\setup.py'"'"';f=getattr(tokeni ze, '"'"'open'"'"', open)( file );code=f.read().replace('"'"'\\r\\n'"'"', '"'"'\\n'"'"') ;f.close();exec(compile(code, file , '"'"'exec'"'"'))' install --record 'C:\\Users\\Pa nkaj\\AppData\\Local\\Temp\\pip-record-wcc393v3\\install-record.txt' --single-version-extern ally-managed --compile --install-headers 'c:\\users\\pankaj\\appdata\\local\\programs\\python \\python38-32\\Include\\pyaudio' cwd: C:\\Users\\Pankaj\\AppData\\Local\\Temp\\pip-install-u6zhmegn\\pyaudio file ='"'"'C:\\Users\\Pank aj\\AppData\\Local\\Temp\\pip-install-u6zhmegn\\pyaudio\\setup.py'"'"';f=getattr(tokeni ze, '"'"' open'"'"', open)( file );code=f.read().replace('"'"'\\r\\n'"'"', '"'"'\\n'"'"' ) ;f.close();exec(compile(code, file , '"'"'exec'"'"'))' install --record 'C:\\Users\\Pankaj\\AppData\\Local\\Temp\\pip -record-wcc393v3\\install-record.txt' --single-version-extern ally-managed --compile --install-headers 'c:\\users\\pankaj\\appdata\\local\\programs\\python\\python38-32\\Include \\pyaudio' cwd: C:\\Users\\Pankaj\\AppData\\Local\\Temp\\pip-install-u6zhmegn\\pyaudio
Complete output (10 lines): running install running build running build_py creating build creating build\\lib.win32-3.8 copying src\\pyaudio.py -> build\\lib.win32-3.8 running build_ext building '_portaudio' extension b'\\\\x00C\\x00o\\x00m\\x00m\\x00o\\x00n\\x00 \\x00w\\x00a\\x00s\\x00 \\x00u\\x00n\\x00e\\x00x\\x00 p\\x00e\\x00c\\x00t\\x00e\\x00d\\x00 \\x00a\\x00t\\x00 \\x00t\\x00h\\x00i\\x00s\\x00 \\x00t\\x00i\\x00m完整输出(10 行): running install running build running build_py 创建 build 创建 build\\lib.win32-3.8 copying src\\pyaudio.py -> build\\lib.win32-3.8 running build_ext building '_portaudio' extension b'\\\\x00C \\x00o\\x00m\\x00m\\x00o\\x00n\\x00 \\x00w\\x00a\\x00s\\x00 \\x00u\\x00n\\x00e\\x00x\\x00 p\\x00e\\x00c\\x00t\\x00e\\x00t\\x00e\\x00d\\x00d x00t\\x00h\\x00i\\x00s\\x00\\x00t\\x00i\\x00m
x00e\\x00.\\x00\\r\\x00\\n\\x00' error: Microsoft Visual C++ 14.0 is required. x00e\\x00.\\x00\\r\\x00\\n\\x00' 错误:需要 Microsoft Visual C++ 14.0。 Get it with "Microsoft Visual C++ Bui ld Tools": https://visualstudio.microsoft.com/downloads/ ---------------------------------------- ERROR: Command errored out with exit status 1: 'c:\\users\\pankaj\\appdata\\local\\programs使用“Microsoft Visual C++ 构建工具”获取: https : //visualstudio.microsoft.com/downloads/ -------------------------- -------------- 错误:命令出错,退出状态为 1:'c:\\users\\pankaj\\appdata\\local\\programs
python\\python38-32\\python.exe' -u -c 'import sys, setuptools, tokenize; python\\python38-32\\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = ' "'"'C:\\Users\\Pankaj\\AppData\\Local\\Temp\\pip-install-u6zhmegn\\pyaudio\\setup.py'"' "'; sys.argv[0] = '"'"'C:\\Users\\Pankaj\\AppData\\Local\\Temp\\pip-install-u6zhmegn\\pyaudio\\setup.py'"'"'; file ='"'"'C:\\Users\\Pankaj\\AppData\\Local\\Temp\\pip-install-u6zhmegn\\pyaudi o\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)( file );code=f.read().repl ace('"'"'\\r\\n'"'"', '"'"'\\n'"'"');f.close();exec(compile(code, file , '"'"'exec'"'"' ))' install --record 'C:\\Users\\Pankaj\\AppData\\Local\\Temp\\pip-record-wcc393v3\\install-re cord.txt' --single-version-externally-managed --compile --install-headers 'c:\\users\\pan kaj\\appdata\\local\\programs\\python\\python38-32\\Include\\pyaudio' Check the logs for full command output. file ='"'"'C:\\Users\\Pankaj\\AppData\\Local\\Temp\\pip-install-u6zhmegn\\pyaudi o\\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\\Pankaj\\AppData\\Local\\Temp\\pip- record-wcc393v3\\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\\users\\pan kaj\\appdata\\local\\programs\\python\\python38-32\\Include \\pyaudio' 检查日志以获取完整的命令输出。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM