简体   繁体   中英

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. 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; 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
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
x00e\\x00.\\x00\\r\\x00\\n\\x00' error: Microsoft Visual C++ 14.0 is required. 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
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'"' "'; 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.

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. 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; 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
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
x00e\\x00.\\x00\\r\\x00\\n\\x00' error: Microsoft Visual C++ 14.0 is required. 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
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'"' "'; 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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