安装库报错怎么处理?
python3吧
全部回复
仅看楼主
level 1
瓦斯洒上 楼主
C:\Users\Yunqi>python -m pip install pyaudio
Collecting pyaudio
Using cached 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:\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Yunqi\\AppData\\Local\\Temp\\pip-install-pwgfenwy\\pyaudio_ae61ec99406a4094b4bc5b6c08f37ff5\\setup.py'"'"'; __file__='"'"'C:\\Users\\Yunqi\\AppData\\Local\\Temp\\pip-install-pwgfenwy\\pyaudio_ae61ec99406a4094b4bc5b6c08f37ff5\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Yunqi\AppData\Local\Temp\pip-record-b5vowgc5\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Python39\Include\pyaudio'
cwd: C:\Users\Yunqi\AppData\Local\Temp\pip-install-pwgfenwy\pyaudio_ae61ec99406a4094b4bc5b6c08f37ff5\
Complete output (9 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
copying src\pyaudio.py -> build\lib.win-amd64-3.9
running build_ext
building '_portaudio' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Yunqi\\AppData\\Local\\Temp\\pip-install-pwgfenwy\\pyaudio_ae61ec99406a4094b4bc5b6c08f37ff5\\setup.py'"'"'; __file__='"'"'C:\\Users\\Yunqi\\AppData\\Local\\Temp\\pip-install-pwgfenwy\\pyaudio_ae61ec99406a4094b4bc5b6c08f37ff5\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Yunqi\AppData\Local\Temp\pip-record-b5vowgc5\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Python39\Include\pyaudio' Check the logs for full command output.
2021年06月26日 07点06分 1
1